water Posted October 13, 2012 Share Posted October 13, 2012 Glad you got it working Now you not only have solved your problem but you have learned a big deal about AutoIt. So the next problem will be much easier to solve! My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 13, 2012 Author Share Posted October 13, 2012 Yes bro thanks a alot Link to comment Share on other sites More sharing options...
COD3369 Posted October 14, 2012 Author Share Posted October 14, 2012 Any idea how to convert a Txt file into Html file? like I have text file with these lines File contains a Virus Click here to fix it convert to this: <!DOCTYPE html> <html> <body> <h1>File contains a Virus</h1> <a href="http://www.vi3mark.com/virusfound/clean.php"> Click here to fix it</a> </body> </html> any idea how to do these or is possible in autoit ??? Thankx.... Link to comment Share on other sites More sharing options...
water Posted October 14, 2012 Share Posted October 14, 2012 Should be quite easy. If you have a text file that contains the two text lines plus the link you mentioned above. You simply read the text file (FileReadLine) to variables and write the HTML code plus the content of the variables to an output (HTML) file. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 15, 2012 Author Share Posted October 15, 2012 (edited) facing problem in reading ini file. i am using wget.exe to download a website wget using this parameter to download website : wget.exe -r www.mysite.com i want space after -r $webd = IniRead(@ScriptDir & "users_data.ini", "UsersDataBase", "CustomersWebsite", "") ShellExecuteWait ( "getweb.exe" , "-r" & $webd ) autoit send the parameter without space. after " -r " scipt is not working ???? why what i am doing wrong ? my ini [UsersDataBase] CustomersWebsite=www.mysite.com CustomersEmail=myemail@gmail.com Thank You !! Edited October 15, 2012 by verma123 Link to comment Share on other sites More sharing options...
water Posted October 15, 2012 Share Posted October 15, 2012 Insert the space into the string:ShellExecuteWait ( "getweb.exe" , "-r " & $webd ) My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 15, 2012 Author Share Posted October 15, 2012 Not working ?? !! Link to comment Share on other sites More sharing options...
water Posted October 15, 2012 Share Posted October 15, 2012 Do you get an error message? What is the returncode of ShellExecuteWait? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 15, 2012 Author Share Posted October 15, 2012 Done its working now thanks bro Link to comment Share on other sites More sharing options...
water Posted October 15, 2012 Share Posted October 15, 2012 Glad you got it working Another step to wisdom My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 16, 2012 Author Share Posted October 16, 2012 bro I have one more question regarding server file monitering... Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 And the question is? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 16, 2012 Author Share Posted October 16, 2012 my code InetGet("http://www.userbase.org/data.ini", @TempDir & "C:data.ini") $FirstLne = IniRead("C:data.ini", "[userDb]", "Website=", "") ShellExecuteWait ( "wget.exe" , "-r " & $FirstLne , 1) I want it will repeat this script until file get availeble on server.. if file not availble on server it again goto first step. it will allways checks the file on server ... please tell me how to do this..? Thankx water for all your help before Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 (edited) According to the help file ShellExecuteWait "Returns the exit code of the program that was run." Do you get a different return value when the file exists and when it doesn't? Edited October 16, 2012 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 16, 2012 Author Share Posted October 16, 2012 no Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 (edited) Something like this. Should be self explantory: InetGet("http://www.userbase.org/data.ini", @TempDir & "data.ini") $FirstLne = IniRead("C:data.ini", "[UserDb]", "Website=", "") FileDelete($FirstLne) ; make sure the file does not exist While 1 ShellExecuteWait("wget.exe", "-r " & $FirstLne, 1) ; Download the file If FileExists($FirstLne) Then ExitLoop ; If the file does still not exist, wait a minute and retry Sleep(60000) WEnd Edited October 16, 2012 by water COD3369 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 (edited) BTW: The line InetGet("http://www.userbase.org/data.ini", @TempDir & "C:\\data.ini")is wrong. It should either be InetGet("http://www.userbase.org/data.ini", @TempDir & "\data.ini")or InetGet("http://www.userbase.org/data.ini", "C:\data.ini") Edited October 16, 2012 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
COD3369 Posted October 16, 2012 Author Share Posted October 16, 2012 if i run this script and file not exsist on server then ? Link to comment Share on other sites More sharing options...
COD3369 Posted October 16, 2012 Author Share Posted October 16, 2012 sorry mistyped Here that line inetget one Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 Then it won't exist on the client after the transfer. So the script waits for a minute and tries it again and again and again and again and again and again and again and again and again and again and again and again ... My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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