B
Barney
Why isn't the following working? The DIR command works
interactively. Is there a reserved shell character that
I'm failing to escape?
SET /P ComputerName=Enter the name of the computer that
you want to clean up:^\^>
FOR %%X IN ('"DIR \\%ComputerName%
\C$\WINNT\$NTUninstall* /A:H /B /S"') DO RD /S /Q %%X
interactively. Is there a reserved shell character that
I'm failing to escape?
SET /P ComputerName=Enter the name of the computer that
you want to clean up:^\^>
FOR %%X IN ('"DIR \\%ComputerName%
\C$\WINNT\$NTUninstall* /A:H /B /S"') DO RD /S /Q %%X