Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExcute weirdness in VFP9
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01555101
Message ID:
01555123
Views:
88
Anybody? Please............. ???

I've tried all the options for the final parameter in Shellexecute (0-9) and only 2 works, but it goes back to Normal instead of staying minimized.

>Hi again, Gang!
>
>Here is a snippet of code in an executable, called LDM.exe.
>
>
>lcExe = "SpoolZebra.Exe"
>lcPrinter = SET("PRINTER",2)
>lcDefaultLoc = SYS(5) + SYS(2003) + "\"
>lcFileName = "/" + lcFileName + "/"
>ShellExecute(0,"open",lcExe,lcFileName + lcPrinter,lcDefaultLoc,2)
>
>
>When run in VFP8 SP1, the ShellExecute opens the program SpoolZebra.exe and minimizes it immediately to the taskbar and runs it (prints a document).
>
>When run in VFP9 SP2, it minimizes, then pops back up to Normal size and prints the document. (BAD BAD BAD !!! That interfers with the normal program flow.).
>
>--------------------------------
>
>I changed the 2 to a 7 in the ShellExecute to see if it would stay minimized.
>
>It did, but it DID NOT PRINT !! Weird !! Why would it not print in this case???
>
>---------------------------------
>
>So, bascially, we want it to stay minimized, yet print the document.
>
>So, any ideas what is going wrong here?
>
>Thanks everyone!!!
Tommy Tillman A+ NetWork+ MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform