How can I get this batch file to read all physical and mapped drives? It works fine with C: but will not read any other drive.
@echo off
set filePath=
for /R c:\ /d %%a in (*) do if exist "%%a\FileName" set filePath=%%a& goto continue
:continue
if defined filePath echo %COMPUTERNAME% %username% yes >> \\server\%computername%.txt

.batbatch file, or can it be a.psPowerShell file? (You list Windows 7 as the OS, and Powershell comes standard on Windows 7. It's likecmd.exeon steroids) – Darth Android Jan 2 at 20:52