Current directory is c:\A\B . If chdir ".." is executed, on 7 of 8 machines
the new directory is C:\A while on the 8th machine it remains C:\A\B with no
error message.

OS is windows XP SP3. Have reloaded Office 2003 several times with no
change in behavior

Any suggestions as to where to look for glitch?

Re: ChDir behavior by Ron

Ron
Tue Jul 22 14:39:10 CDT 2008

Hi HC

Try to use it together with ChDrive

MyPath = "C:\A"
ChDrive MyPath
ChDir MyPath

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"HC" <HC@discussions.microsoft.com> wrote in message news:B2623100-70AF-4B03-860B-BB40B1458D48@microsoft.com...
> Current directory is c:\A\B . If chdir ".." is executed, on 7 of 8 machines
> the new directory is C:\A while on the 8th machine it remains C:\A\B with no
> error message.
>
> OS is windows XP SP3. Have reloaded Office 2003 several times with no
> change in behavior
>
> Any suggestions as to where to look for glitch?

Re: ChDir behavior by HC

HC
Tue Jul 22 17:56:00 CDT 2008

Tried it, and got a "path not found" error on the one machine, other machines
work as expected.

"Ron de Bruin" wrote:

> Hi HC
>
> Try to use it together with ChDrive
>
> MyPath = "C:\A"
> ChDrive MyPath
> ChDir MyPath
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "HC" <HC@discussions.microsoft.com> wrote in message news:B2623100-70AF-4B03-860B-BB40B1458D48@microsoft.com...
> > Current directory is c:\A\B . If chdir ".." is executed, on 7 of 8 machines
> > the new directory is C:\A while on the 8th machine it remains C:\A\B with no
> > error message.
> >
> > OS is windows XP SP3. Have reloaded Office 2003 several times with no
> > change in behavior
> >
> > Any suggestions as to where to look for glitch?
>

Re: ChDir behavior by Ron

Ron
Tue Jul 22 18:01:58 CDT 2008

Test if you use the correct Separator in the path

MsgBox Application.PathSeparator


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"HC" <HC@discussions.microsoft.com> wrote in message news:2B3726F3-A37F-48E3-A7BB-6711A9564E87@microsoft.com...
> Tried it, and got a "path not found" error on the one machine, other machines
> work as expected.
>
> "Ron de Bruin" wrote:
>
>> Hi HC
>>
>> Try to use it together with ChDrive
>>
>> MyPath = "C:\A"
>> ChDrive MyPath
>> ChDir MyPath
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "HC" <HC@discussions.microsoft.com> wrote in message news:B2623100-70AF-4B03-860B-BB40B1458D48@microsoft.com...
>> > Current directory is c:\A\B . If chdir ".." is executed, on 7 of 8 machines
>> > the new directory is C:\A while on the 8th machine it remains C:\A\B with no
>> > error message.
>> >
>> > OS is windows XP SP3. Have reloaded Office 2003 several times with no
>> > change in behavior
>> >
>> > Any suggestions as to where to look for glitch?
>>

Re: ChDir behavior by HC

HC
Tue Jul 22 18:12:01 CDT 2008

Path separator is indeed the back slash "\"

"Ron de Bruin" wrote:

> Test if you use the correct Separator in the path
>
> MsgBox Application.PathSeparator
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "HC" <HC@discussions.microsoft.com> wrote in message news:2B3726F3-A37F-48E3-A7BB-6711A9564E87@microsoft.com...
> > Tried it, and got a "path not found" error on the one machine, other machines
> > work as expected.
> >
> > "Ron de Bruin" wrote:
> >
> >> Hi HC
> >>
> >> Try to use it together with ChDrive
> >>
> >> MyPath = "C:\A"
> >> ChDrive MyPath
> >> ChDir MyPath
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "HC" <HC@discussions.microsoft.com> wrote in message news:B2623100-70AF-4B03-860B-BB40B1458D48@microsoft.com...
> >> > Current directory is c:\A\B . If chdir ".." is executed, on 7 of 8 machines
> >> > the new directory is C:\A while on the 8th machine it remains C:\A\B with no
> >> > error message.
> >> >
> >> > OS is windows XP SP3. Have reloaded Office 2003 several times with no
> >> > change in behavior
> >> >
> >> > Any suggestions as to where to look for glitch?
> >>
>

Re: ChDir behavior by HC

HC
Tue Jul 22 18:43:01 CDT 2008

It appears that a couple of non-print characters or a backspace got into the
directory name corrupting the chdir process. Re-entered the folder name and
all is good.

Thanks Ron for the effort (I'm embarassed - should have checked that sooner)

"Ron de Bruin" wrote:

> Test if you use the correct Separator in the path
>
> MsgBox Application.PathSeparator
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "HC" <HC@discussions.microsoft.com> wrote in message news:2B3726F3-A37F-48E3-A7BB-6711A9564E87@microsoft.com...
> > Tried it, and got a "path not found" error on the one machine, other machines
> > work as expected.
> >
> > "Ron de Bruin" wrote:
> >
> >> Hi HC
> >>
> >> Try to use it together with ChDrive
> >>
> >> MyPath = "C:\A"
> >> ChDrive MyPath
> >> ChDir MyPath
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "HC" <HC@discussions.microsoft.com> wrote in message news:B2623100-70AF-4B03-860B-BB40B1458D48@microsoft.com...
> >> > Current directory is c:\A\B . If chdir ".." is executed, on 7 of 8 machines
> >> > the new directory is C:\A while on the 8th machine it remains C:\A\B with no
> >> > error message.
> >> >
> >> > OS is windows XP SP3. Have reloaded Office 2003 several times with no
> >> > change in behavior
> >> >
> >> > Any suggestions as to where to look for glitch?
> >>
>