Saved Bookmarks
| 1. |
Solve : Starting a new window with the specified commands.? |
|
Answer» Quote from: BatchFileCommand on April 05, 2009, 03:19:58 PM Thank you Dias, couldn't you have just posted that in the BEGGINING. I didn't think of it until today, ALSO you have been very rude, so I decided to punish you. 18:03 = 6:03this is funny little util, pop up little window showing time-watch. only few lines. nice.. and then again i am going to preach about code readability Code: [Select]@echo off>clock.bat >>clock.bat echo @echo off >>clock.bat echo mode con: cols=16 lines=2 >>clock.bat echo :loop >>clock.bat echo echo %%time%% >>clock.bat echo if not exist signal.txt goto loop >>clock.bat echo exit if exist signal.txt del signal.txt start "" "cmd.exe" /c clock.bat set /p string="Press ENTER to stop clock " echo %string%>signal.txt Code: [Select]@echo off ( echo @echo off echo mode con: cols=16 lines=2 echo :loop echo echo %%time%% echo if not exist signal.txt goto loop echo exit )>clock.bat & REM parantesis is not supported, escape with caret if exist signal.txt del signal.txt start/b "" "cmd.exe" /c clock.bat set /p string="Press Enter to stop clock " echo %string%>signal.txt |
|