Below is a copy of a script I use to
"start" an X-window session.
The script is called startx.bat, and
I invoke it by double clicking its shortcut on my desktop.
You will notice that the commands in the
script are primarily "Windows" commands...
...Including invoking "bash"...
The trick is specifying the -C argument to bash, which tells it to "run this command".
Code:
@echo off
C:
chdir C:\cygwin\bin
bash -c "PATH=$PATH:/bin:/usr/bin;XWin -clipboard -logverbose 3 -ac -query cdcxvd0559.con-way.com -fp \"tcp/cdcxvd0559.con-way.com:8000,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,/usr/share/fonts/Type1/\" "
HTH,
-tony