Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

create a batch file from batch file

REM Create batch file with required instructions or commands
echo timeout /t 6 > C:	emp	emp_file.bat
echo del "dir O:MINE" >> C:	emp	emp_file.bat
echo ^(goto^) 2^>1 ^& del "%%~f0" >> C:	emp	emp_file.bat
 
timeout /t 3

REM Execute the newly created batch file
start /b cmd /c call "C:	emp	emp_file.bat"
 
PREVIOUS NEXT
Tagged: #create #batch #file #batch #file
ADD COMMENT
Topic
Name
4+9 =