Batch file that will extract a batch file

January 20, 2011 at 22:52:03
Specs: Windows XP
I need to create a batch file (1) that will extract a batch file (2) inside 1. When 1 is run, it will extract 2 and 2 will run. The output of 2 is in .txt.

See More: Batch file that will extract a batch file

Report •


#1
January 20, 2011 at 23:48:55

Batfile1.bat commands go here as necessary

(
Batfile2.commands go here
)>%temp%\batfile2.bat

Further batfile1.bat commands go here if necessary

Call %temp%\batfile2.bat
del %temp%\batfile2.bat

Did you Google for an answer before asking the question?


Report •

#2
January 21, 2011 at 02:24:49
yes, i did. but kinda misunderstand some. btw, i'll try your code. thanks.

Report •

Related Solutions


Ask Question