AutoHotkey Community

It is currently May 26th, 2012, 11:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 27th, 2008, 2:21 am 
Offline

Joined: February 20th, 2008, 8:08 am
Posts: 22
Quote:
mysql -h localhost -u root dbo < script.sql > output.tab

works perfectly in cmd, but

Quote:
Run, %A_WorkingDir%\mysql.exe -h localhost -u root dbo < script.sql > output.tab, %A_WorkingDir%


in ahk script did nothing :\

I tried everything I can imagine and failed to get this work :(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2008, 10:52 am 
Offline

Joined: December 8th, 2006, 5:17 am
Posts: 248
Location: Sydney Australia
What happens if you put in a debug nessage box

Code:
Msgbox %A_WorkingDir%


Are there spaces in the variable %A_WorkingDir% ?

If so...
Code:
Run, "%A_WorkingDir%\mysql.exe" -h localhost -u root dbo < script.sql > output.tab, "%A_WorkingDir%"

_________________
Paul O


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2008, 10:35 pm 
Offline

Joined: February 20th, 2008, 8:08 am
Posts: 22
no spaces in path and I forgot to mention that mysql runs but looks like without parameters (shows help and inserts nothing in table)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2008, 12:35 am 
Offline

Joined: February 20th, 2008, 8:08 am
Posts: 22
nvm, solved it with .bat file :\


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group