Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. Thank you for your support. Tom Speirs

Patreon

Little Help With Batch file


vsilvalopes

Recommended Posts

Hi Everyone !

After some research in the forum , I´ve found this to use batch to use ECM Tools in within GameEx

The idea of JK1974 is great , and helped me a lot to find the answer for my problem.

Based on his code , I´ve modified it to apply better to my situation.

So here´s my code

@echo on

set directory=%1

set directory=%directory:~1,-1%

set file=%2

set file=%file:~1,-1%

"C:\Playstation\packiso\unpakkIso.exe" "%directory%"

"%ProgramFiles(x86)%\Daemon Tools Lite\daemon.exe" -mount 0,"%directory%\%file%"

C:\Playstation\ePSXe.exe -nogui -slowboot

I´ve made just a few changes... :lol:

Well , I need help in the following.

This batch file does it :

1-Run Unpackiso to Unpack my game and get it ready do be mounted by Daemon Tools

2-Mount the ISO file

3-Run epsxe.

My problem is , after unpacking the ISO , the BIG *.bin file stays in the folder.

And if I want to play the same game again, I will have to wait (a lot) the unpackiso process finish again.

I want that the Batch file check if a *.BIN file is present , and if yes skips the process of unpackiso. Going right to the Daemon tools step.

And after that , mount the *.cue that is already present in the directory.

Thanks to everyone !

Link to comment
Share on other sites

@echo on

set directory=%1

set directory=%directory:~1,-1%

set file=%2

set file=%file:~1,-1%

What are the input file names are they *.bin files?

If they are you could use:

-----

IF NOT EXIST %file% GOTO unpack ELSE GOTO end

:unpack

"C:\Playstation\packiso\unpakkIso.exe" "%directory%"

GOTO end

:end

"%ProgramFiles(x86)%\Daemon Tools Lite\daemon.exe" -mount 0,"%directory%\%file%"

C:\Playstation\ePSXe.exe -nogui -slowboot

-----

Check out

http://www.computerhope.com - for more batch file commands

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...