Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ancient Syntax
Message
From
09/02/2015 14:25:42
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
To
09/02/2015 12:36:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01615028
Message ID:
01615035
Views:
75
>We have an ancient Label Printing program (no longer supported by the vendor) and an application that calls it with the following
>
>lcCommand = [! /N c:\directory\exe.Exe /Usr uuuu /Pwd ppppp/cmd ] + addbs(path) + 'somefile.cmd'
>&lcCommand
>Wait Window 'Label printed' Nowait
>
>We converted the application from VFP8 to VFP9 and it has suddenly stopped printing. The application opens, appears to work, closes without having printed anything.
>
>Is there any possibility that using SHELLEXECUTE() would make a difference? If so, could somebody please help with the syntax once I've declared the DLL?

Some things to look at:

1. In your example above does "path" now contain space(s), where formerly it didn't? If so that would effectively cause extra (incorrect) parameters (and no correct fully-qualified file name) to be passed to exe.exe

2. Did anything else change in addition to switch from VFP8 to 9? For example, maybe workstations were replaced and now are Win7 or Win8, and were formerly XP

3. Test in a CMD window to see if the command line you're passing in can be run manually
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform