Computer Hope
Microsoft => Microsoft DOS => Topic started by: Quebecois on August 24, 2007, 09:23:15 AM
-
Hey guys I am trying to use the pushd command to map a drive and copy a screensaver file. I was then planning on using AD to select the screensaver. Problem is I can't get the pushd command to work. Any ideas?
pushd \\server1\mis\missoftware\mainshare\Package_CD\Screensaver
md C:\Package CD
copy *.scr C:\Package CD\ *.scr
popd
-
normally for mapping drive, i use net use. you can try that. type net use ? on the command prompt to see its usage
-
Thanks Ghost. I thought about that but unfortunately our network has a lot of mapped drives with no rhyme or reason to the lettering. The pushd will allow me not to worry about those issues. I think it scans the mappings and finds an used drive letter.
-
i think the * option in net use can take care of that too..
-
Worked great but how do I remove that drive after I am finished?
-
dude, you didn't read the net use help properly. there's an option there you can use to delete net work drive.