This is the mail archive of the cygwin@sourceware.cygnus.com 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]

how do you run .bat files under bash?


I'm stumped. From within a bash shell how do I execute a .bat script?

BTW, I don't want to have to do anything verbose like invoke cmd.com
with the name of the script, I just want to be able to type the name
of the script on the command line and/or be able to invoke it from
within another script (or via a "system" call).

It seems to me that the convention of #!/path/to/script/interpretor
as the first line won't work if the script is invoked from a normal
win32 environment. Basically what I'm looking for is the ability to
invoke scripts from any environment without regard to the environment
I'm in. How do I do this?

John

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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