Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Invoking the Windows command line for selected directories

by xdg (Monsignor)
on Nov 27, 2006 at 19:18 UTC ( [id://586318]=note: print w/replies, xml ) Need Help??


in reply to Invoking the Windows command line for selected directories

Not Perl, but similarly handy is the "Open Command Window Here" PowerToy free from Microsoft.

Another fun thing is "start some_dir" from the command line to pop up a file explorer for that directory. (E.g. "start ." to see the explorer for the current directory).

start has other neat uses. Given a filename, it will open the file up the default app for that filetype. Handy for .html files, for example. Type "help start" at the command line for more details.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^2: Invoking the Windows command line for selected directories
by jimbojones (Friar) on Nov 28, 2006 at 15:51 UTC
    Hi

    The "power toy" is a registry entry
    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\cmd] [HKEY_CLASSES_ROOT\Folder\shell\cmd\Command] @="cmd.exe /K \"cd %L\""
    and is insanely useful. To be able to right-click on the directory and pop the command line saves a great deal of time.

    Getting a bash shell would probably be even better.

    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\bash shell] [HKEY_CLASSES_ROOT\Folder\shell\bash shell\Command] @="cmd /C \"cd /d %L && c:\\cygwin\\bin\\bash.exe\""
Re^2: Invoking the Windows command line for selected directories
by Fletch (Bishop) on Nov 28, 2006 at 03:57 UTC

    Analogously on OS X you can use the open command to perform similar tasks (open a directory in the Finder, or open a file with either its default application or a specified application (via the -a flag)). See man 1 open for more details.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://586318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-25 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found