Computer Hope

Microsoft => Microsoft DOS => Topic started by: Quebecois on August 24, 2007, 09:23:15 AM

Title: Pushd
Post 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

Title: Re: Pushd
Post by: ghostdog74 on August 24, 2007, 09:36:30 AM
normally for mapping drive, i use net use. you can try that. type net use ? on the command prompt to see its usage
Title: Re: Pushd
Post by: Quebecois on August 24, 2007, 10:07:38 AM
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.
Title: Re: Pushd
Post by: ghostdog74 on August 24, 2007, 10:18:36 AM
i think the * option in net use can take care of that too..
Title: Re: Pushd
Post by: Quebecois on August 24, 2007, 12:18:12 PM
Worked great but how do I remove that drive after I am finished?
Title: Re: Pushd
Post by: ghostdog74 on August 24, 2007, 07:23:28 PM
dude, you didn't read the net use help properly. there's an option there you can use to delete net work drive.