AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trouble using ImageMagick command line with ahk

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
acowbear



Joined: 14 May 2006
Posts: 45

PostPosted: Sat May 03, 2008 2:54 pm    Post subject: Trouble using ImageMagick command line with ahk Reply with quote

When I type this directly into the CMD...
convert "C:\Documents and Settings\gman\Desktop\Image Majic\1.jpg" "C:\Documents and Settings\gman\Desktop\Image Majic\3.bmp"

It uses image magic to convert the jpg just fine

BUT when I try to do it through an ahk script like this...

Code:

CommandToSend=
(
convert "C:\Documents and Settings\gman\Desktop\Image Majic\1.jpg" "C:\Documents and Settings\gman\Desktop\Image Majic\3.bmp"
)
Runwait, %CommandToSend%,,


Nothing Happens. What am I doing wrong?
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Sat May 03, 2008 5:11 pm    Post subject: Reply with quote

for me in XP the command convert is used to convert FAT to NTFS
use if you are in image magic folder

run,%compec% /C %commandtosend%

Quote:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Dokumente und Einstellungen\Administrator>convert /?
Konvertiert FAT-Volumes in NTFS.
CONVERT Volume /FS:NTFS [/V] [/CvtArea:Dateiname] [/NoSecurity] [/X]
Back to top
View user's profile Send private message
acowbear



Joined: 14 May 2006
Posts: 45

PostPosted: Sat May 03, 2008 7:42 pm    Post subject: Reply with quote

Sweet!! It works now! Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group