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 

Command works from DOS prompt but not from RunWait

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



Joined: 05 Aug 2006
Posts: 41

PostPosted: Fri Sep 04, 2009 9:26 pm    Post subject: Command works from DOS prompt but not from RunWait Reply with quote

This call works when done from the dos prompt, but not when called from AHK...
Code:
id3 -q "%l;%a;%t;%g;%c" "*.mp3" > temp.txt
  • I know to put ticks in front of the percent signs to escape them, and
  • I tried putting quotes around all the stuff after the command (i.e. id3), but nothing worked.
  • I also made sure my AHK file was in the ID3 folder so relative paths could be used.
  • I tried putting an ".exe" after the command as well.
  • I also tried splitting off the attributes string into a separate variable.
  • I also tried not using semi-colons as the delimiter.

Does anyone see something I missed?

(Obviously some of you don't have this particular executable, but I thought some might be able to see something for me to try right off the bat.)
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5333
Location: San Diego, California

PostPosted: Fri Sep 04, 2009 9:36 pm    Post subject: Reply with quote

This works for me, YMMV; but I suggest you read the thread below
Code:
k = dir c:\progra~1\excel.exe >C:\found.txt

clipboard:=k

sendinput %clipboard%

send {enter}

problem with characters sent to CMD window
http://www.autohotkey.com/forum/viewtopic.php?t=48343
Back to top
View user's profile Send private message
purloinedheart



Joined: 04 Apr 2008
Posts: 537
Location: Canada

PostPosted: Fri Sep 04, 2009 10:13 pm    Post subject: Reply with quote

Doesn't even run from a batch file, that's pretty weird I think

On a side note I just made a program that does this today Laughing
Tell me if it doesn't work out for you
Back to top
View user's profile Send private message
BoBoł
Guest





PostPosted: Fri Sep 04, 2009 10:27 pm    Post subject: Reply with quote

Code:
MsgBox % "id3 -q ""%l;%a;%t;%g;%c"" ""*.mp3"" > temp.txt"
Run, % "id3 -q ""%l;%a;%t;%g;%c"" ""*.mp3"" > temp.txt"
Question
Back to top
purloinedheart



Joined: 04 Apr 2008
Posts: 537
Location: Canada

PostPosted: Fri Sep 04, 2009 10:42 pm    Post subject: Reply with quote

@Bobo - Does not produce any output

Code:

FileAppend % "id3 -q ""%l;%a;%t;%g;%c"" ""*.mp3"" > temp.txt", Run.bat
run run.bat

Temp.txt >>
Code:

a;g;c


when run from prompt
Temp.txt >>
Code:
gorillaz;Gorillaz;5/4;Other;
Back to top
View user's profile Send private message
sugardaddy



Joined: 05 Aug 2006
Posts: 41

PostPosted: Tue Sep 08, 2009 3:06 am    Post subject: Reply with quote

@PurloinedHeart, I'd love to see what you have put together. I'd like to get this working, but maybe what you have could be of help, too.
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