ArturAker 0 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??? Share this post Link to post Share on other sites
Juvigy 49 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. Share this post Link to post Share on other sites
ArturAker 0 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)) Share this post Link to post Share on other sites
Juvigy 49 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 Share this post Link to post Share on other sites
ArturAker 0 Posted December 9, 2010 Thanks, it works perfectly Share this post Link to post Share on other sites