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

Calling included files?

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



Joined: 27 Feb 2006
Posts: 5

PostPosted: Mon Feb 27, 2006 5:00 pm    Post subject: Reply with quote

Okay, so, I have a batch file that calls other batch files. I convert the main batch file to a .exe, and include the other batch files that are to be called.

Originally none of the called files were working, and I got a lot of "FILENAME is not recognised as an internal or external command" errors, but then I changed:

CALL FILENAME

to

CALL %FILENAME%

so that the compiled batch file can find the included files. This has removed the above error messages, but still doesn't work correctly.

For example, I have a file called "userinput" which pops up a box in which people type their input, then click on "OK" and it gets saves as %input% to be used later. The main batch file says:

CALL %USERINPUT%

and I don't get an error, but it doesn't pop up the input box, and the programme continues with %input% empty.

This all works fine from the straight batch files, before they're compiled into the .exe. Can anyone tell me what I'm doing wrong???

Thanks,
~m~
Back to top
ejk42



Joined: 27 Feb 2006
Posts: 5

PostPosted: Mon Feb 27, 2006 5:14 pm    Post subject: Reply with quote

Again, ignore me. I have figured this one out. I totally misunderstood the %MYFILES% thing.

For anyone else who's confused, to call an included file called "FILENAME" you use:

CALL %MYFILES%\FILENAME

~m~
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