hello evry one
i just want to know how to make a DOS batch script file (.bat) run automatically ? for example a make this simple code : @ echo off
mkdir mydirectry
so how to make it run automatically ? C:\batextra>type runwithat.bat
@ echo off
cd \
cd mydirectory
del myfile.txt
cd \
rd mydirectory
mkdir mydirectory
cd c:\mydirectory
echo hello > myfile.txt
dir
(I will schedule runwithat.bat with "At" or scheduled tasks and post back.)Output:C:\batextra>runwithat.bat
Volume in drive C has no label.
Volume Serial Number is F4A3-D6B3
Directory of C:\mydirectory
11/07/2009 12:52 PM <DIR> .
11/07/2009 12:52 PM <DIR> ..
11/07/2009 12:52 PM 10 myfile.txt
1 File(s) 10 bytes
2 Dir(s) 304,406,917,120 bytes free
Press any key to continue . . .
Volume in drive C has no label.
Volume Serial Number is F4A3-D6B3
Directory of C:\mydirectory
11/07/2009 12:54 PM <DIR> .
11/07/2009 12:54 PM <DIR> ..
11/07/2009 12:54 PM 10 myfile.txt
1 File(s) 10 bytes
2 Dir(s) 304,406,917,120 bytes free
C:\mydirectory>