Link to home
Start Free TrialLog in
Avatar of ttrbrtsn
ttrbrtsnFlag for United States of America

asked on

cant change directories in dos in citrix

im logged into citrix. i have a mapped L drive. when i go to DOS, and type in h:\ cd L:, it take me back to the h drive. how can i keep it to my L drive?

thanks
Capture.JPG
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ttrbrtsn

ASKER

I've requested that this question be closed as follows:

Accepted answer: 0 points for ttrbrtsn's comment #a41044191

for the following reason:

worked good
Either #a41044139 or #a41044191 works.
Avatar of Bill Prew
Bill Prew

@ttrbrtsn,

Did you try the solution provided by NVIT, that will certainly work, and I would suggest it's the preferred approach unless you have some reason that PUSHD is needed?

Just for some additional clarity:

CD will change the default directory on the drive you specify to the directory specified.  It does not however change the current default drive of the command session, as you desired.
L: at the command prompt will actually change the default drive to L:, and will actually place you in the current default directory of that drive, which is normally the root.
PUSHD L: will also change the current default drive to L:, but before doing so it "remembers" the current drive and directory.  It is useful when you want to execute a command or two on the new drive, and then return back to where you started from.  To do that you would later issue the POPD command and it would return you to H: in your example

Hope this helps to clarify.  Certainly the NVIT suggestion was a valid solution, so I would ask that you consider awarding points once you confirm it works for you.

~bp
would suggest to select NVIT's suggestion and spend the points.

additional hint:
c:\user\me\>CD /d e:\TEMP
e:\temp>
change dirve to e: and directory within drive e: to e.\temp