Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dos command fails ..grrr
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01673719
Message ID:
01673724
Vues:
63
>>>>I am trying to do this:
>>>>
>>>>openfiles /query /fo csv /nh > c:\vv\vv_csv.csv
>>>>
>>>>..I've tried all the ways I know to execute dos commands from VFP -- they all fail. I've put it in a one line .bat file, tried RUN command, tried shellexecute , etc.
>>>>
>>>>If I go to the DOS prompt and run the command it works fine -- so I know syntax and rights and all that is setup.
>>>>
>>>>Been stuck on this for 1/2 day -- anyone got any ideas here??
>>>
>>>The application should be ran as administrator if you wan to use openfiles command.
>>>Even if you simply run CMD this command will not run.
>>
>>I'm logged in as an administrator ... if I run CMD the command runs fine.
>
>Logged as administrator is not enough.
>Just try it. Right clivk on your application and select "Run as administrator"

...so even though it works from the CMD prompt, it won't work from the VFP command window???
I have to compile an .exe and run it to try it???

FYI - -what I'm attempting to do here is unlock some files on a server...perhaps there is a better way to do what I'm attempting in the first place...
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform