Jump to content
Sign in to follow this  
ArturAker

IE scrip failed if used with cmd

Recommended Posts

ArturAker

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

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

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.