ArturAker Posted December 9, 2010 Posted December 9, 2010 I Wrote this simple Script #include <IE.au3> $oIE = _IECreate (FileReadLine ("DeliverySettings.txt",1)) The script retrive the browser address from a txt file and open it. This works great if you double click the Script EXE file. but It dosent work if you run the file from the cmd! if u do that the broser loads up witout an address. whay is that and how do I fix it???
Juvigy Posted December 9, 2010 Posted December 9, 2010 Put this in the beginning: ConsoleWrite(FileReadLine("DeliverySettings.txt",1)&@CRLF) After you verify that it doesnt work then try adding the full file path for the text file.
ArturAker Posted December 9, 2010 Author Posted December 9, 2010 do u meen like this?: ConsoleWrite(FileReadLine("c:\DeliverySettings.txt",1)&@CRLF) #include <IE.au3> $oIE = _IECreate (FileReadLine ("c:\DeliverySettings.txt",1))
Juvigy Posted December 9, 2010 Posted December 9, 2010 #include <IE.au3> ConsoleWrite(FileReadLine("c:\DeliverySettings.txt",1)&@CRLF) $oIE = _IECreate (FileReadLine ("c:\DeliverySettings.txt",1)) Like this if you use Scite otherwise change ConsoleWrite to MsgBox
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