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

Author Topic: How to return to the original drive/path?  (Read 2332 times)

0 Members and 1 Guest are viewing this topic.

torres

    Topic Starter


    Greenhorn

    How to return to the original drive/path?
    « on: October 16, 2007, 05:56:04 PM »
    I'd like to be able to return to the user's current drive/path before my batch file ends. I couldn't find a system variable which does this, so is this done by setting two vars for the drive and path? How would this be done?

    Basically, the batch file changes the drive & path near its beginning, but before closing, I'd like it to set them back.

    Thanks

    gpl



      Apprentice
    • Thanked: 27
      Re: How to return to the original drive/path?
      « Reply #1 on: October 16, 2007, 06:10:41 PM »
      Check the PushD and PopD commands
      Graham

      torres

        Topic Starter


        Greenhorn

        Re: How to return to the original drive/path?
        « Reply #2 on: October 16, 2007, 06:55:07 PM »
        Thanks Graham. That worked.