Open Microsoft Word OpenWord.bat @echo off REM Next command opens Microsoft Word start /d "C:\Program Files\Microsoft Word" WINWORD.EXE ________________ Say Hello Hello.bat @echo off REM Next command inputs the greeting echo Hello! This a sample batch file. REM Next command displays “Press any key to continue” and waits for user to press a key pause dir c:\windows ________________ Create a list of program files ProgramList.bat @echo off REM Next command creates a list of program files in the computer’s C:\ drive dir "C:\Program Files" > C:\list_of_program_files.txt
No comments:
Post a Comment