This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin - batch file
- From: "Mirco Piccin" <pictux at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 25 Jan 2008 15:19:25 +0100
- Subject: Re: Cygwin - batch file
- References: <15088393.post@talk.nabble.com>
Hi.
> i'm trying to write a batch file, which open cygwin, automatically execute a
> script in cygwin, and then close cygwin.
as reported in a my old post, that's what i've done: i've created a
file .bat (example: run_command.bat) on my desktop and inside that
(supposing you install cygwin in your C: drive):
C:
chdir C:\cygwin\bin
bash --login -i -c '<here insert the command you want to run>'
Save & Exit this file.
(obviously replace the <here insert the command you want to run>
string with your command)
Now you need only to double-click in your .bat file.
Regards
M
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/