I apologise if this has been answered previously, but I cant find any reference..
How do i search for a file in the root folder of a hard disk? (either c:\ or d:\)
I know how to perform a search that will scan the whole disk, or even the windows folder, but I cant fathom out how to point it solely to the root (I dont think there is an environment variable for this purpose??)
The line below obviously searches for a file called file.doc in the windows directory.
What do i replace the "c$\%windir%" with??
cmd.exe /x /c dir \\%E%\c$\%Windir%\file.doc/s >>c:\output.txt &pause
How do i search for a file in the root folder of a hard disk? (either c:\ or d:\)
I know how to perform a search that will scan the whole disk, or even the windows folder, but I cant fathom out how to point it solely to the root (I dont think there is an environment variable for this purpose??)
The line below obviously searches for a file called file.doc in the windows directory.
What do i replace the "c$\%windir%" with??
cmd.exe /x /c dir \\%E%\c$\%Windir%\file.doc/s >>c:\output.txt &pause
Comment