General information
Category:
Coding, syntax & commands
If you are tring to run a DOS app., in Win95 or WinNT then you could use this:
DECLARE LONG ShellExecute IN "SHELL32.DLL" LONG HWND, STRING LPSZOP,;
STRING LPSZFILE, STRING LPSZPARAMS, STRING LPSZDIR, LONG NSHOWCMD
DECLARE LONG GetDesktopWindow IN "WIN32API"
*
STORE 'H:\DIRTEST.TXT' TO mFILE1
=ShellExecute(GetDesktopWindow(), "OPEN", "COMMAND.COM",;
"/C DIR C:\*.* >> C:\MDF.TXT", "C:\", 0)
=ShellExecute(GetDesktopWindow(), "OPEN", "Z:\FLAG.EXE",;
"H:\DIRTEST.TXT SRO", "H:\", 0)
The first ShellExecute runs a DOS command, the second runs the FLAG command on a Novell server to change the H:\DIRTEST.TXT file to SRO.
The Arguments are:
"OPEN" - Required
"COMMAND.COM" - File to be RUN
"/C DIR C:\*.* >> C:\MDF.TXT" - Command Arguments, NOTE: there is no space between the command.com and the Arguments
"H:\" - default directory to be run in
0 - the show command, 0 = no window, 1 = show window
give this a wearl and see if it helps
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only