1.

Solve : Can I use md to link to a network computer to determine the OS?

Answer»

I have code to CREATE the directory I WANT on a networked computer, but I need to determine the OS in order to write to the correct drive (C for XP or D for 2000). Is it POSSIBLE or do I have to use net use.

Thank you

Code: [Select]IF NOT EXIST \\DATABASE_WORKSPACE\D$\TESTFOLDER\ md \\DATABASE_WORKSPACE\D$\TESTFOLDER
IF EXIST \\DATABASE_WORKSPACE\D$\TESTFOLDER\
VER | FIND "2000" > NUL
IF %ERRORLEVEL% == 0 GOTO VER_2000Try this http://malektips.com/xp_dos_0025.htmlThanks that worked.



Discussion

No Comment Found