Information générale
Catégorie:
Fonctions Windows API
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement