Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Pushd  (Read 2814 times)

0 Members and 1 Guest are viewing this topic.

Quebecois

  • Guest
Pushd
« 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


ghostdog74



    Specialist

    Thanked: 27
    Re: Pushd
    « Reply #1 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

    Quebecois

    • Guest
    Re: Pushd
    « Reply #2 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.

    ghostdog74



      Specialist

      Thanked: 27
      Re: Pushd
      « Reply #3 on: August 24, 2007, 10:18:36 AM »
      i think the * option in net use can take care of that too..

      Quebecois

      • Guest
      Re: Pushd
      « Reply #4 on: August 24, 2007, 12:18:12 PM »
      Worked great but how do I remove that drive after I am finished?

      ghostdog74



        Specialist

        Thanked: 27
        Re: Pushd
        « Reply #5 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.