Sign in to follow this  
Followers 0
mrbuzzcut

Barcode Frontend

2 posts in this topic

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

Share this post


Link to post
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.

 

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  
Followers 0