failedtocompile Posted July 8, 2009 Share Posted July 8, 2009 (edited) Hello CrewI have been looking for example scripts to see if it can be done and also looking thought helpfile for Variables/Runwait etc...I was wondering if you can substitute RunWait( "filename" with:$Store1 = EnvGet("HomeShare") $Store2 = "H:\temp";Windows mapped network drive and folder temp $File1 = @ScriptDir $File2 = "C:\program files\alpha\101.exe" RunWait('"$File2" /q /f /s "' $store2 '"')Working code:$MyHomeShare = EnvGet("HomeShare") RunWait('"PRO.EXE" /q /f /s "' & $MyHomeShare & '\officebkup\officebkup.OPS"');PRO.EXE is located within where the compiled script is being run fromI am still having a hard time working out spaces and quotes, double quotes brackets.Any help would be appreciatedthanks Edited July 8, 2009 by failedtocompile Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 8, 2009 Share Posted July 8, 2009 (edited) RunWait('"' & $File2 & '" /q /f /s "' & $store2 & '"') Use the & symbol to connect text. Edited July 8, 2009 by Richard Robertson Link to comment Share on other sites More sharing options...
failedtocompile Posted July 8, 2009 Author Share Posted July 8, 2009 RunWait('"' & $File2 & '" /q /f /s "' & $store2 & '"') Use the & symbol to connect text. Thanks Richard Robertson May you point me in the right direction on where you learned that from? So if i was to go to helpfile i can find an example Link to comment Share on other sites More sharing options...
bo8ster Posted July 8, 2009 Share Posted July 8, 2009 Try the help file or searching for RunWait in all the forum. You will see many many examples there. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
failedtocompile Posted July 8, 2009 Author Share Posted July 8, 2009 Try the help file or searching for RunWait in all the forum. You will see many many examples there.Hi bo8sterMy first post states that I have checked both sources.But the use of & and " ' does not go into detail in the help file when searching for RunWait .What i was asking for was someone to help me with where to locate the explanation of implementing & within a script.I would think someone asking for help in locating "Help" on certain topics is better than someone just continually wanting answers i.e. being slack.Question still stands, is there a help file that explains the use of & and " ' Thanks in advance Link to comment Share on other sites More sharing options...
bo8ster Posted July 8, 2009 Share Posted July 8, 2009 Sorry I did not get your question up front. The help file provides more of a quick guide of how to use functions. Richard is very experienced so I would assume he like many others here have learnt though experience and asking questions just like you have here. I learnt the & symbol by looking at other scripts. There are some tutorials in my Sig if you are looking more in depth info. Just Searching, ' " and & is explained in "Language Reference" of the help file. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
failedtocompile Posted July 8, 2009 Author Share Posted July 8, 2009 Sorry I did not get your question up front.The help file provides more of a quick guide of how to use functions. Richard is very experienced so I would assume he like many others here have learnt though experience and asking questions just like you have here. I learnt the & symbol by looking at other scripts. There are some tutorials in my Sig if you are looking more in depth info. Just Searching, ' " and & is explained in "Language Reference" of the help file.Awesome thanks bo8ster will have a look now Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 8, 2009 Share Posted July 8, 2009 I replied based on years of general programming experience, sorry. I don't really know where one would have found this in AutoIt documents. 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