Setting a BAT to open a file BY DRAGGING THE FILE ON THE BAT
Moderator: DosItHelp
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Ah thats right. I put a PUSHD at the top of all my drag and drop scripts.
PUSHD "%~dp0"
PUSHD "%~dp0"
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
…or<Edit>Changed "%~1" to %1</Edit>
Code: Select all
@If /I %~x1 Equ .bin (Start "" "%~dp0waffles.exe" -loadbin %1)
Last edited by Compo on 15 Oct 2014 12:12, edited 1 time in total.
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
ShadowThief wrote:What happens if you sayCode: Select all
@If /I %~x1 Equ .bin (Start "%~dp0\waffles.exe" -loadbin "%~1")
I tried with
@echo off
Start "" "%~dp0\waffles.exe" "" -nogui -fastboot -loadbin "%~1"
since in other ways it wasnt working at all
this way it starts if the bin is in the same folder as waffles.exe, but if not, it says ERROR bios not found
wich is a folder found in the same directory of waffles.exe AND CHECKED BY WAFFLES.EXE (weird)
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Ok PUSHD worked
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Sometimes it helps if you actually tell us the actual name of the executable and what the executable is supposed to do. Obfuscating what you are trying to do usually leads to 100% confusion 100% of the time.
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
alesimula wrote:I tried with
@echo off
Start "" "%~dp0\waffles.exe" "" -nogui -fastboot -loadbin "%~1"
It also helps if you do not edit your post to change it to look like you attempted to do what I posted. We posted at almost exactly the same time so you couldn't have read my post. Your post read differently, (it was based on ShadowThief's).
Additionally, your edit failed since my code is still different to yours!
<Edit>@Squashman
I would suggest that the application/execuatable is likely a Sony Playstation emulator and the loaded file is more than likely an .iso</Edit>
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Compo wrote:alesimula wrote:I tried with
@echo off
Start "" "%~dp0\waffles.exe" "" -nogui -fastboot -loadbin "%~1"
It also helps if you do not edit your post to change it to look like you attempted to do what I posted. We posted at almost exactly the same time so you couldn't have read my post. Your post read differently, (it was based on ShadowThief's).
Additionally, your edit failed since my code is still different to yours!
<Edit>@Squashman
I would suggest that the application/execuatable is likely a Sony Playstation emulator and the loaded file is more than likely an .iso</Edit>
anyway it works now
Actually it was a bin file but... hurray! You totally understood what i was tryin to do.
With an original PlayStation game of course, I got a playstation but it suddenly broke, it was for testing purpose and Sony blocked all of his consoles of my country OF COURSE...
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Compo wrote:<Edit>@Squashman
I would suggest that the application/execuatable is likely a Sony Playstation emulator and the loaded file is more than likely an .iso</Edit>
Yes. I google searched as soon as I saw how he was running that. If the OP would have provided all this information upfront this thread would have been about 20 posts shorter!
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Squashman wrote:Compo wrote:<Edit>@Squashman
I would suggest that the application/execuatable is likely a Sony Playstation emulator and the loaded file is more than likely an .iso</Edit>
Yes. I google searched as soon as I saw how he was running that. If the OP would have provided all this information upfront this thread would have been about 20 posts shorter!
Exactly
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
It would still have been nice if the attempt I made had actually been tried:included corrected execuatable name
Code: Select all
@If /I %~x1 Equ .bin (Start "" "%~dp0epsx.exe" -nogui -fastboot -loadbin %1)
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Compo wrote:It would still have been nice if the attempt I made had actually been tried:included corrected execuatable nameCode: Select all
@If /I %~x1 Equ .bin (Start "" "%~dp0epsx.exe" -nogui -fastboot -loadbin %1)
I agree Compo. Your code should work flawlessly.
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
Compo wrote:It would still have been nice if the attempt I made had actually been tried:included corrected execuatable nameCode: Select all
@If /I %~x1 Equ .bin (Start "" "%~dp0epsx.exe" -nogui -fastboot -loadbin %1)
Yep now it works (I mean, i had tried with the code similiar to this before but it didnt work)
PS: little detail: ePSXe.exe
thx
Re: Setting a BAT to open a file BY DRAGGING THE FILE ON THE
alesimula wrote:facts proves the contrary
Questions without actual facts often result in answers that don't work, and also long threads trying to find out what the actual requirements are.
potato and waffle and hiding all paths does actually make it difficult to give you an appropriate answer,
but with actual details you are very likely to get a working solution in just one reply.