Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Not running %0 properly - exe bug

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
NDog



Joined: 06 Oct 2006
Posts: 4

PostPosted: Sat Dec 16, 2006 2:16 am    Post subject: Reply with quote

Running a compiled exe from folder c:\gamesx

source code is
Code:
@ECHO ON&CLS

SET LOCALPATH=%0
SET LOCALPATH=%LOCALPATH:~1,-1%

%LOCALPATH%\..\script\%1.bat
PAUSE
EXIT


EXE Output is

C:\WINDOWS>SET LOCALPATH=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\bt6627.bat

C:\WINDOWS>SET LOCALPATH=:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\bt6627.ba

C:\WINDOWS>PAUSE
Press any key to continue . . .



Batch Output is (and so should EXE output be)

C:\gamesx>SET LOCALPATH="C:\gamesx\gamesx.bat"

C:\gamesx>SET LOCALPATH=C:\gamesx\gamesx.bat

C:\gamesx>C:\gamesx\gamesx.bat\..\script\.bat
'C:\gamesx\gamesx.bat\..\script\.bat' is not recognized as an internal or extern
al command,
operable program or batch file.

C:\gamesx>PAUSE
Press any key to continue . . .

Can you please stop running this as a temporary batch file or something because I need to run this using %0 so it needs to launch in the current directory

Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group