Jump to content
Sign in to follow this  

Browser not startet via AutoIt-Script

Recommended Posts


Hey out there,

I wrote a script for backing up a MySQL database on our managed server.

Here are the first lines of my script, where the problem is:

;Includes for functions _RunDOS and _Now()
#include <Process.au3>
#include <Date.au3>

;Read variables from ini-file
;Read IE and Scriptpath from ini-file
$IE = iniread("values.ini","Backup","IE","")

;Start IE and run Backupscript on server
run ($IE)

;Wait 5 minutes until killing IE

The ini file says for IE:

IE=c:\Program Files\Internet Explorer\iexplore.exe http://www.mydomain.de/backup/backup.php

My problem is that, planned as a task, the script doesn't call Internet Explorer or Mozilla Firefox (I tried with both). If I run the script manually it works and the browser with the given URL is opened and the backup runs.

Any idea why???

My system runs under Windows Server 2008 R2 x64.

Thanks in advance


Share this post

Link to post
Share on other sites

Hi Jass

Run("C:\Programme\Internet Explorer\iexplore http://www.autoitscript.com")

The above command works well for me, so the only possible problem in the script is the IniRead()

Try adding a default value for the iniRead so you can isolate the problem... f.e. just output the content of $IE after reading it to see what it contains, or you could try

$IE = iniread("values.ini","Backup","IE","C:\Windows\System32\calc.exe")

and run it, if the calculator starts, you have to correct your ini file...



Share this post

Link to post
Share on other sites

Thanks for your help but I think the problem is Windows Server and not AutoIt.

I tried with quotes and without and the last I tried just:


Worked when exe-file was called manually but not thought the task planner.

Maybe Windows Server doesn't allow exe-files to call other exe's???

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.