When opening an executable using explorer.exe, how do I pass arguments to
the executable?
Related to another question of mine: How to invoke Windows' gvim in a
Windows environment from within Cygwin?
I've now found that explorer.exe 'C:\Program Files
(x86)\Vim\vim73\gvim.exe' opens Windows' gVim in a Windows context
properly. I've now written a gvim function in my .bashrc that executes the
above command when called without arguments. However, I'd like to know how
I can pass on the arguments to the gVim if the function is called with
arguments. Trying explorer.exe 'C:\Program Files (x86)\Vim\vim73\gvim.exe'
D:\myfile.txt just opens Windows Explorer to the Libraries page, so this
direct syntax doesn't work, but I'm unable to find what the correct way to
pass these arguments is. Googling only gives me the list of switches to
explorer.exe but nothing about passing arguments to executables executed
with explorer.exe.
No comments:
Post a Comment