+ Reply to Thread
Results 1 to 3 of 3

Using ChDrive and ChDir

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Using ChDrive and ChDir

    I can not figure out why the ChDir command doesn't change to "C:\" as programmed, instead it defaults to (I'm guessing last active folder) on my "D" drive (Which is "D:\Test")?
    My goal is to check if "PPG" exists in "C:\MEASURE-6000", if not use "C:\" as a default.
    Please Login or Register  to view this content.
    The macro works, but it doesn't work as planned.
    Last edited by Rick_Stanich; 01-14-2010 at 10:54 AM.
    Regards

    Rick
    Win10, Office 365

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Using ChDrive and ChDir

    You are using them the wrong way round - you need ChDrive to switch from D: to C: then ChDir to change directory within that drive.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Re: Using ChDrive and ChDir

    Thanks, that got me going.
    (snippet) This works.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1