Jump to content

Barcode Frontend


Recommended Posts

Hello, I'm trying to create an AutoIt front end to the gnu barcode application. This is the first time that I have ever scripted in AutoIt, so I am not sure the proper way to formulate the command line. This is what I have and is NOT working.

$saveLoc = FileSaveDialog ( "Save the barcode", "L:\", "All (*.*)","","")

$cmdLine = "barcode.exe -g 100x50 -b " & $Barcode & " -o " & $saveLoc

Run("C:\Program Files\GnuWin32\bin\" & $cmdLine,"", @SW_HIDE )

I'm getting an error on the second line.. any help would be appreciated. Thanks!

Andrew

Link to comment
Share on other sites

try

$saveLoc = FileSaveDialog ( "Save the barcode", "L:\", "All (*.*)","","")
$cmd_Line = "barcode.exe -g 100x50 -b " & $Barcode & " -o " & $saveLoc
Run("C:\Program Files\GnuWin32\bin\" & $cmd_Line,"", @SW_HIDE )

Command Line Parameters

The special array $CmdLine is initialized with the command line parameters passed in to your AutoIt script.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...