Win 98 has this annoying property that doesn't allow you to permanently move desktop icons that call bat files. I figured I would write a Win 32 program that calls the bat file itself. I don't know how I would write it.


Use the API function ShellExecute or ShellExecuteEx. This is the first time i have heard of someone needing to write a wrapper for a batch file

Anyone have some example code for ShellExecute or ShellExecuteEx, something to get me started.

Posted on 2004-10-19 19:40:05 by skywalker
invoke ShellExecute,hWnd,0,offset FileName,offset Parameters,offset directory,SW_SHOW

I think you can get away with leaving the offset to the Parameters as 0, and can do the same thing with directory if the program is in the same directory OR is attached to the file name (so filename is "c:\...filename.exe")
Posted on 2004-10-20 02:39:01 by nofrillz
Please refer the win32help.hlp
Posted on 2004-10-21 10:45:57 by seasea