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

Author Topic: From here to there and back again  (Read 6059 times)

0 Members and 1 Guest are viewing this topic.

tboyerva

    Topic Starter


    Rookie

    • Experience: Expert
    • OS: Windows 7
    Re: From here to there and back again
    « Reply #15 on: March 23, 2016, 09:17:15 AM »
    Actually the Batch itself is actually is in a different directory, but the Output is being written to c:\working.

    I appreciate all the help you've given me thus far. I might need to be satisfied with the 80/20 rule at this point.

    tboyerva

      Topic Starter


      Rookie

      • Experience: Expert
      • OS: Windows 7
      Re: From here to there and back again
      « Reply #16 on: March 23, 2016, 09:30:17 AM »
      Let me try a different idea

      Can I strip off the "\" from the "H:\" I get from %cd%?

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: From here to there and back again
      « Reply #17 on: March 23, 2016, 09:26:32 PM »
      cd /d %currdrpth%

      I'm seeing an Error that 'H:\' is not recognized as an internal or external command.

      Put this on the lines above it.  You'll see what it inside the variable and be able to figure out the oddness.
      Mind you that isn't where the error you see is being generated, unless & is in the variable.  Add pause here and there to track it down.

      Code: [Select]
      echo cd /d -%currdrpth%-
      pause