Jump to content

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


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

:)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...