Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing Batch Files with Parameters
Message
De
30/03/2005 10:03:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00995512
Message ID:
00999923
Vues:
46
This message has been marked as the solution to the initial question of the thread.
>I have done this sergy but still no joy. If I use CMD and cd to the directory and type:
>
>pdmimp.bat pic.tif
>
>It works fine. But if I create a PRG and in the program type the following:
>
>RUN '\\lean\c$\picturetest\pdmimp.bat' '\\lean\c$\picturetest\pic.tif'
>
>Nothing happens. Im a little stuck. Do you think the run command together with trying to call a bat file with parameter is the problem. Can I do it another way.
>
>Many Thanks

Neil,
Would this work?
declare long ShellExecute in "shell32.dll" ;
	long hwnd, string lpszOp, ;
	string lpszFile, string lpszParams, ;
    string lpszDir, long nShowCmd

ShellExecute(0,'','\\lean\c$\picturetest\pdmimp.bat','pic.tif','\\lean\c$\picturetest',1)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform