Jump to content
RESET Forums (homeservershow.com)

Small 'programming' challenge


ikon
 Share

Recommended Posts

I'm not familiar with pushd and popd. I'm very familiar with push and pop in assembly language, but not in this context. I will have to look it up.

Link to comment
Share on other sites

Microsoft Windows [Version 6.1.7601]

Copyright © 2009 Microsoft Corporation. All rights reserved.

 

C:\>pushd /?

Stores the current directory for use by the POPD command, then

changes to the specified directory.

 

PUSHD [path | ..]

 

path Specifies the directory to make the current directory.

 

If Command Extensions are enabled the PUSHD command accepts

network paths in addition to the normal drive letter and path.

If a network path is specified, PUSHD will create a temporary

drive letter that points to that specified network resource and

then change the current drive and directory, using the newly

defined drive letter. Temporary drive letters are allocated from

Z: on down, using the first unused drive letter found.

 

C:\>popd /?

Changes to the directory stored by the PUSHD command.

 

POPD

 

 

If Command Extensions are enabled the POPD command will delete

any temporary drive letter created by PUSHD when you POPD that

drive off the pushed directory stack.

 

Link to comment
Share on other sites

Yep. I found the same info. It's basically, and not surprisingly, given its name, the same concept as the assembly language push & pop. It just does paths instead of current memory locations.

 

I believe I now have a working script. I've tested it on my system at home and it seems to work fine. Just have to test it on my client's computers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...