Sign in to follow this  
Followers 0
ArturAker

IE scrip failed if used with cmd

5 posts in this topic

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



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

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

Thanks, it works perfectly

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0