Sign in to follow this  
Followers 0
fanfreluche

Works only within SciTe

1 post in this topic

This is my first one, I'm trying to convert a Take Command btm file to AutoIt.

The following code was written in SciTe, tested for syntax, and after figuring out all the quotes and & needed, I executed it from within SciTe: success! the metadata from the image file appeared in the clipboard viewer.

Compiling went fine, both from within SciTe and from the explorer context menu.

Executing the script from the context menu brings up the following message:

AutoIt Error

Line 21 (File "I:\Program Files\AutoIt3\My Tests\testdirectto_x.au3"):

Run(@ComSpec & " /c" & $program1 & $params1 & "@" & $file1 & " " & $file2 & " " & "|" & $program2 & $Params2)

Error: Unable to execute the external program.

A device attached to the system is not functioning.

; ----------------------------------------------------------------------------

;

; AutoIt Version: 3.1.1.0

; Author: Robert Foisy

;

; Script Function:

; Grab a full filename of an image passed by Thumbs Plus (not yet implemented)

; Run ExifList on an image file using a predetermined template to format the output

; The Exiflist syntax is "Exiflist /o t /s @templatefile.txt imagefile.jpg"

; Send the output text to NoteTab

;

; ----------------------------------------------------------------------------

; Script Start -

$Program1 = '"I:\Program Files\EXIFutils for Windows\exiflist.exe"'

$Params1 = " /o t /s "

$File1 = '"i:\photos\europe 2004 rejets\exiftest3\Shortlist.txt"'

$File2 = '"i:\photos\europe 2004 rejets\exiftest3\P1010220_ini.jpg"'

$Program2 = '"I:\Program Files\EXIFutils for Windows\DirectTo.exe"'

$Params2 = " /c"

Run(@ComSpec & " /c" & $program1 & $params1 & "@" & $file1 & " " & $file2 & " " & "|" & $program2 " " $Params2)

Exit

;The following at the command prompt of the DOS window sends the text to the clipboard:

;i:\program files\exifutils for windows>exiflist /o t /s @Shortlist.txt "I:\Photos\Europe 2004 rejets\Exiftest3\P1010220_ini.jpg" |directto.exe /c

Can anyone tell me what rules I am not applying properly?

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