@ECHO OFF COLOR 3E SET A111="Documents and Settings" SET A222=Users SET /P PC=Enter Computer IP or HostName: @echo Opening Remote Folder.... if exist "" "\\%PC%\C$\"%A111%" (start "" "\\%PC%\C$\"%A111%") else (start \\%PC%\C$\%A222%) PAUSE
I made a batch file to open some remote folders but there is a mistake I didn't notice.
After entering IP; I want to open, If there is remote "Documents and Settings" folder. But If there is no "Documents and Settings", I want to see "Users" folder.
Where is the error I make?
Thank you in advance...
\_(ツ)_/ twitter.com/serdaruzun