Jabberwock Posted October 22, 2005 Share Posted October 22, 2005 I can't seem to set $data into a dos string, is it possible to set a defined variable in there? talking about the _RunDOS( "commandhere $data" ) Link to comment Share on other sites More sharing options...
GaryFrost Posted October 22, 2005 Share Posted October 22, 2005 _RunDOS( "commandhere " & $data ) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
peter1234 Posted October 22, 2005 Share Posted October 22, 2005 Are you using full path for the variable name? If you are just using $data it does not know where to look. Link to comment Share on other sites More sharing options...
Jabberwock Posted October 22, 2005 Author Share Posted October 22, 2005 well, the $data is defined by user input and _RunDOS( "ping " & $data2 & "/t /l " & $data ) isn't quite working for me Link to comment Share on other sites More sharing options...
GaryFrost Posted October 22, 2005 Share Posted October 22, 2005 try the following, it will create a command window and won't close till you close it, this way you can see if there are errors RunWait (@ComSpec & ' /k ping ' & $data2 & ' /t /l ' & $data) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Jabberwock Posted October 22, 2005 Author Share Posted October 22, 2005 thanks a lot, i found the problem now that i could actually see the operation =) Link to comment Share on other sites More sharing options...
Jabberwock Posted October 22, 2005 Author Share Posted October 22, 2005 lol, sorry to bother again, would it be possible to add a toggle button to this command to start and stop it? because when i get it running without the window, i have to ctrl alt delete it Link to comment Share on other sites More sharing options...
GaryFrost Posted October 23, 2005 Share Posted October 23, 2005 ProcessClose("ping.exe") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Jabberwock Posted October 23, 2005 Author Share Posted October 23, 2005 well, i assume that would work, but once it's been started, it ignores every other function, the script won't even close untill you ctrl alt delete cmd.exe and ping.exe, any ideas? Link to comment Share on other sites More sharing options...
GaryFrost Posted October 23, 2005 Share Posted October 23, 2005 the command will work, i also noticed the ping command ignored all ctrl-breaks etc.. so i started the ping like above and then ran a script with just the processclose command in it and it killed the ping. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted October 23, 2005 Share Posted October 23, 2005 example: Run(@Comspec & ' /c ping ' & $data2 & ' /t /l ' & $data, '', @SW_HIDE) Sleep ( 15000 ) ProcessClose("ping.exe") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Jabberwock Posted October 23, 2005 Author Share Posted October 23, 2005 i sent you my souce code in a PM, i'm not sure if you got it or not, but mabye you could see why it's not working Link to comment Share on other sites More sharing options...
GaryFrost Posted October 23, 2005 Share Posted October 23, 2005 sent back SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Jabberwock Posted October 23, 2005 Author Share Posted October 23, 2005 Thanks a lot, Works great Link to comment Share on other sites More sharing options...
GaryFrost Posted October 23, 2005 Share Posted October 23, 2005 (edited) yw you might to think about putting some error checking in there, if they forget to set the data, and hit the start then it should not run the command Edited October 23, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Jabberwock Posted October 23, 2005 Author Share Posted October 23, 2005 well, i would, but i'm kinda nub at this, still learning the code, i wish there was like a big list of commands and what they do, other than the help files Link to comment Share on other sites More sharing options...
GaryFrost Posted October 23, 2005 Share Posted October 23, 2005 not sure what editor your using, but this might help if your not using it SciTE SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now