|(It's **** near impossible to search for this since "%" is ignored in almost all |
search engines... )
I'm trying to use the very common "Print directory listing" context menu batch file in
Vista. However, %1 is not returning the directory I am selecting. I tested this by just
trying to echo or cd %1 and I just get blank output - if I put quotes around "%1", I
only get quotes (for echo). %0 still works and shows the batch file name, but no
parameters after that (1,2,3,4...) have any output (just says "echo is on"). Help?
I have already added the shell command key for directories in the registry
Here's the test batch:
dir %1 /-p /o:gn >"%temp%\Listing.txt"
start /w notepad "%temp%\Listing.txt"
BTW, sfc, AVG, and Mbam didn't find any problems. I'm running Vista Ult.SP1.
edited by moderator: language