Batch File error -
when run next batch file show me error "the directory name invalid." .exe file of notepad , others within system32 folder. not sure how write path:
@echo off cls :menu echo. echo............................................... echo press 1, 2 select task; or 3 exit echo............................................... echo. echo 1 - open notepad echo 2 - open write echo 3 - open exit echo. set /p m=type 1,2, or 3 press enter: if %m% == 1 goto notepad if %m% == 2 goto write if %m% == 3 goto eof :notepad cd %windir%\notepad.exe start notepad.exe goto menu :write cd %windir%\write.exe start write.exe goto menu
thanks ken
you can't cd
file, directory. since these in system32 folder, they're in scheme path don't need cd directory.
@echo off cls :menu echo. echo............................................... echo press 1, 2 select task; or 3 exit echo............................................... echo. echo 1 - open notepad echo 2 - open write echo 3 - open exit echo. set /p m=type 1,2, or 3 press enter: if %m% == 1 goto notepad if %m% == 2 goto write if %m% == 3 goto eof :notepad start notepad.exe goto menu :write start write.exe goto menu
file batch-file
No comments:
Post a Comment