Quantcast
Channel: GameEx Forum
Viewing all articles
Browse latest Browse all 3124

[RESOLVED] Bat file, mount iso for pc game (help)

$
0
0
Hello,

I have a little problem with one thing.
I did exactly what is said here for launch a pc game:

http://www.gameex.in...mes/#entry89514


The iso mount fine, but after the 9 seconds it return to gameex whitout launch the game.
I put the command line from the bat here:

@echo off
cls
echo.
SET INPUT1=%1
SET ROMFile=%INPUT1:~1,-1%


set str=%ROMFile%
set str=%str:.lnk=%


If EXIST "%programfiles%\DAEMON Tools Lite\DTLite.exe" (SET mounter="%programfiles%\DAEMON Tools Lite\DTLite.exe")
If EXIST "%programfiles(x86)%\DAEMON Tools Lite\DTLite.exe" (SET mounter="%programfiles(x86)%\DAEMON Tools Lite\DTLite.exe")


SET isopath=E:\GameEx\GameEx\Emulateur Games\JeuxPc\Iso des jeux

If EXIST "%isopath%\%str%.ccd" (goto isCCD)
If EXIST "%isopath%\%str%.cue" (goto isCUE)
If EXIST "%isopath%\%str%.mds" (goto isMDS)


If EXIST "%isopath%\%str%.iso" (%mounter% -mount dt,0,"%isopath%\%str%.iso")
If EXIST "%isopath%\%str%.bin" (%mounter% -mount dt,0,"%isopath%\%str%.bin")
If EXIST "%isopath%\%str%.img" (%mounter% -mount dt,0,"%isopath%\%str%.img")


goto Exit

:isCCD
%mounter% -mount dt,0,"%isopath%\%str%.ccd"
goto Exit


:isCUE
%mounter% -mount dt,0,"%isopath%\%str%.cue"
goto Exit


:isMDS
%mounter% -mount dt,0,"%isopath%\%str%.mds"
goto Exit


:Exit

ping -n 9 127.0.0.1 >NUL


All path is correct.
Is it an error in the commande line ?

Tanks, and sorry for my poor english.

Viewing all articles
Browse latest Browse all 3124

Trending Articles