Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Invoking the Windows command line for selected directories

by xdg (Monsignor)
on Nov 27, 2006 at 19:18 UTC ( #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.


Comment on Re: Invoking the Windows command line for selected directories
Select or Download Code
Re^2: Invoking the Windows command line for selected directories
by Fletch (Chancellor) 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.

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\""

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-11-26 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (160 votes), past polls