find out whatever the window name for cmd.exe is. Shouldnt that work?
Can someone tell me how i can start batch files with CF 1.4?
my external.xml contains this:
<PATH>c:\windows\system32\cmd.exe</PATH>
<PARAMETERS>/C path_to_my_batch.cmd</PARAMETERS>
<WINDOWNAME></WINDOWNAME>
<DISPLAYNAME>OFF</DISPLAYNAME>
<PAUSEMUSIC>False</PAUSEMUSIC>
<LINECONTROL>NONE</LINECONTROL>
<MUTEONEXIT>False</MUTEONEXIT>
<STARTFULLSCREEN>False</STARTFULLSCREEN>
<ENABLEHEADER>True</ENABLEHEADER>
Which "WINDOWNAME" I've to use, that my batchfile will run?
find out whatever the window name for cmd.exe is. Shouldnt that work?
this i allready tryed... sadly it doesn't work
The window name is "C:\Windows\system32\cmd.exe"
Euh.... Embedding bat files works perfect!
The main problem is that CF reacts just like XP reacts![]()
Try to run your .bat file from windows explorer... you probably see windows command pop up execute the batch code and close again. This is exactly what happens in CF.
Try this:
-create a .bat file (test.bat) and execute "dir" in it.
-windowname: "c:\windows\system32\cmd.exe"
-path: "c:\test.bat"
You'll see that in CF the embed area turns into gray... windows is closed (end of code)
Replace in the "test.bat" file "dir" with "edit" and try again...
You will see now that everything works perfect (exept for horizontal window-resizing, standard not possible with a command window).
"edit" is now running embedded and is a pure DOS program... once you close "edit" the embedded window closes.
I hope this makes things more clear...
Ahh.. ok, thanks!
Now it works!
Bookmarks