Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing Batch Files with Parameters
Message
From
30/03/2005 10:03:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00995512
Message ID:
00999923
Views:
47
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
Previous
Reply
Map
View

Click here to load this message in the networking platform