February 15th, 2012, 02:10 PM
.cmd getting path script
Why it doesn't work even if I run it as administrator?
FORFILES /P C:\ /M myfile.* /S /C "cmd /c echo @path 1>outfile.txt"
February 15th, 2012, 02:21 PM
What does "doesn't work" mean?
dir /s /b C:\myfile.* > outfile.txt
Comments on this post
February 15th, 2012, 02:27 PM
It didn't create an output file, there was a lot of errors in console: ("ERROR:Access denied") . So, it's better to do it in your way which is much simplier. Thanks a lot!
Originally Posted by requinix