Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing file attributes thru VFP or API?
Message
De
16/06/1998 09:28:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00108427
Message ID:
00108614
Vues:
30
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
Fil
Voir

Click here to load this message in the networking platform