This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Windows batch program to open shell at directory specified as argument


On Thu, Aug 26, 2010 at 11:45 PM, Reckoner <reckoner@gmail.com> wrote:
> I use chere to right-click and open a shell at a given directory, and
> I was wondering if it is possible to setup a windows batch script that
> would accomplish the same thing from the Windows command line. In
> other words something like,
>
> c:> cygwin_start_dir.bat c:\mystuff\directory
>
> which would then open my favourite shell at the?c:\mystuff\directory.

Yes, this is possible. You simply want to grab the command that chere
puts a registry and paste it into a batch file. You probably need to
fix up quoting, and change any %L to %1.

Run 'chere -r' and look for the text associated with the command key.


Cheers,

Dave.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]