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

Inluding other Batch files within EXE.

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



Joined: 22 Feb 2009
Posts: 1

PostPosted: Sun Feb 22, 2009 1:15 am    Post subject: Inluding other Batch files within EXE. Reply with quote

Hi, I have a batch file that works, and connects too 3 other batch files.
It is done by the Choice command, which links to a file that deletes temp files etc.

Could i put my main batch file (Thats used to open and run them) as the exe and include the other 3 into the same exe, with it still working as if they were 3 seperate batch files?

I use , both the "CALL" command And the "CD /D C:\Program Files" commands, to link to the other batch files, and other files on my computer.

If it would work, how do i go about using the %MYFILES% enviroment, which i guess is used to link them?

Especially when one batch file is run by using CD /D Program files... etc and the Other 2 by using the CALL command?


Thanks for your time.
Back to top
support
Site Admin


Joined: 13 Feb 2004
Posts: 378

PostPosted: Mon Mar 16, 2009 10:52 pm    Post subject: Reply with quote

Yes, you can.
You will need to use %MYFILES% variable to get the path to included files,
for example:

CALL %MYFILES%\included.bat
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