Jump to content
Sign in to follow this  
coucou

Can't run a program neither by the .exe nor by the link

Recommended Posts

coucou

Hi,

I'm trying for a while to run a prog with its option without success.

Here the command (as given after the installation by its shortcut

C:\WINDOWS\system32\spool\drivers\w32x86\3\bgsview.exe -printer="BroadGun pdfMachine" -config

By launching

Run("C:\WINDOWS\system32\spool\drivers\w32x86\3\bgsview.exe -printer="BroadGun pdfMachine" -config")
or
Run(@SystemDir & '\system32\spool\drivers\w32x86\3\bgsview.exe -printer='BroadGun pdfMachine' -config')
I got AutoIt Error Message as

Run("C:\WINDOWS\system32\spool\drivers\w32x86\3\bgsview.exe -printer= ^ERROR

Error: Error parsing function call.

Then I tried this

$exe = bgsview.exe -printer="BroadGun pdfMachine" -config
Run(@SystemDir & "\system32\spool\drivers\w32x86\3\$exe")
I got AutoIt Error Message

$exe = bgsview.exe -printer="BroadGun pdfMachine" -config

$exe = ^ERROR

Error: Error parsing function call.

Then I tried to run the link

ShellExecute(@ProgramsCommonDir & "\BroadGun Software\BroadGun pdfMachine options.lnk")
or
ShellExecuteWait('C:\Documents and Settings\All Users\Start Menu\Programs\BroadGun Software\BroadGun pdfMachine options.lnk')
Both commands return the window here bellow to Move the BroadGun pdfMachine options

Any help will be appreciated

coucou

Share this post


Link to post
Share on other sites
Jos

Run('C:\WINDOWS\system32\spool\drivers\w32x86\3\bgsview.exe -printer="BroadGun pdfMachine" -config')

:)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.