Saved Bookmarks
| 1. |
Solve : are batch file writing different in windows xp and dos 7.1? |
|
Answer» when i run this BAT file in windows command prompt it works fine when i run it from dos 7.1 prompt i get syntex errors when i run this bat file in windows command prompt it works fine when i run it from dos 7.1 prompt i get syntex errors Because it uses the NT command extensions, namely, those allowing string manipulation.is there a way for a batch file to tell the difference between windows command and older dos versions? yes, in your batch script, you make a MANUAL effort to check the operating system the batch file is on. EG using ver etc. But i will tell you a BETTER way to do things. Use a PROGRAMMING language like Perl or Python (or vbscript if you are a native guy) to do your scripting stuffs. Their syntax seldom change (much) across different platforms and software version. |
|