Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

In DOS  Prompt Change Automatic Dirrectory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wab713 - 23 Mar 2008 10:01 GMT
When I use the DOS Prompt screen, it automatically shows a particular
directory.
I would like preset the directory that come up automatically.
As it stands right now, it does not come up with the directory I want.
I know that I can use the command "cd" to change the directory, but it is
tedious to have to do that every time I use the DOS Prompt.   Is there a way
to accomplish this?
Thanks.
Dave Peterson - 23 Mar 2008 14:27 GMT
Maybe you could create a shortcut (on your desktop???) and use that instead.

I rightclicked on an empty spot on the desktop.
New|Shortcut
I typed this into the location of the item:
%comspec%

Then gave it a nice name.
And finished those dialogs.

Then I rightclicked on that new shortcut and chose properties.
On the Shortcut tab, I changed the "Start In" box to what I wanted.

> When I use the DOS Prompt screen, it automatically shows a particular
> directory.
[quoted text clipped - 4 lines]
> to accomplish this?
> Thanks.

Signature

Dave Peterson

Chip Pearson - 23 Mar 2008 16:27 GMT
If you are running the Cmd program directly from the Windows Start Run
dialog, you can't change the path. If you are scripting it with Shell in VBA
or VBS, you can use code like

   Const THE_PATH = "C:\Test"
   ChDrive THE_PATH
   ChDir THE_PATH
   Shell "cmd", 1

Change the value of THE_PATH to the directory in which Cmd should start.

Signature

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
   Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

> When I use the DOS Prompt screen, it automatically shows a particular
> directory.
[quoted text clipped - 5 lines]
> to accomplish this?
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.