General information
Category:
Windows API functions
This is what I used to do that. The FLAG command is a Novell command, you could edit the Command.com command to use ATTRIB if needed.
DECLARE LONG ShellExecute IN "SHELL32.DLL" LONG HWND, STRING LPSZOP,;
STRING LPSZFILE, STRING LPSZPARAMS, STRING LPSZDIR, LONG NSHOWCMD
DECLARE LONG GetDesktopWindow IN "WIN32API"
=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)
If you want to see the window change the 0 to a 1.
Hope it helps
Previous
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