%username% in a bat file
So my question is with mapping a users home drive with a bat file.
If I run the command from a cmd prompt works
NET USE H: \\Servername\Home$\%username%
If I put this command in a bat file and run the bat file with a pause at the end I can see that I am getting a system error 67 network path not found.
What am I missing?
4 Comments
[ - ] Hide Comments
There are no answers at this time
Comments