Re: MS-DOS Shell - help needed to start in a specific directory

From: techno (out.there_at_somewhere.com)
Date: 06/20/04

  • Next message: techno: "Re: "Missing" CD drives"
    Date: Sun, 20 Jun 2004 15:48:28 -0400
    
    

    On Sun, 20 Jun 2004 11:58:20 -0600, Rob Stow <rob.stow@sasktel.net>
    wrote:

    >techno wrote:
    >
    >> How do you start your MS-DOS Shell in the folder (directory) that I
    >> have my Windows Explorer currently pointing at. Is their a MS-DOS
    >> variable that can pass that info from Windows.
    >>
    >> The properties are at
    >>
    >> MS-DOS Prompt Properties\Program\Working
    >>
    >> or can a batch file move me to this directory?
    >>
    >> Yes, I'm using Windows 2000. Any help will be much appreciated.
    >
    >Start Explorer.
    >Go to Tools|Folder Options|File Types.
    >Scroll through the list until you find "File Folder".
    >
    >While File Folder is highlighted, click on the Advanced Button.
    >
    >On the dialog that opens, click "New".
    >
    >Give it a name like "Command Prompt Here".
    >
    >For the command, use
    > cmd.exe /f:on /k:"cd /d "%1""
    >
    >
    >To use this, right click on a folder's icon in Explorer
    >and select your newly created command.
    >
    >To understand how the command works, go to a command
    >prompt and type "cmd /? |more"

    Rob,

    You really made my day. Works perfectly.


  • Next message: techno: "Re: "Missing" CD drives"

    Relevant Pages

    • Re: Great SWT Program
      ... Invisible extra things to backspace away are going to trip ... This indicates that Windows is not seeing the same input ... drag and drop oddities in Explorer indicate a similar problem; ... command prompt instead of a different task; ...
      (comp.lang.java.programmer)
    • Re: 3 icons missing from startup
      ... [[Allows you to remove the Run command from the Start menu, ... Explorer, and Task Manager. ... Run dialog box by pressing the Application key (the key with the Windows ... Search does not appear in the context menu when you right-click an icon ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: Get full path directory list on both recursive and non-recursive dir command
      ... Windows", but that would likely ruffle a few feathers... ... Directory list of *.foo files, in the root directory only ... around your particular problem with this batch file if you care a lot about ... It does not fully emulate the dir command but it will return a full path ...
      (microsoft.public.windowsxp.general)
    • Re: How To Execute Batch File Line By Line
      ... COMMAND /C string Carries out the command specified by string, ... CMD /C Carries out the command specified by string and then terminates. ... Both .cmd and .bat files work on Windows NT versions. ... File Description MS-DOS Batch File ...
      (microsoft.public.windowsxp.general)
    • Re: Great SWT Program
      ... Windows' default command line buffer is explained in detail here: ... For the purposes of a batch file, ... then put the files from the working directory back. ...
      (comp.lang.java.programmer)