Jump to content
Sign in to follow this  
Michael_Gerrard

Default Path

Recommended Posts

Michael_Gerrard

Hi. Normally the default path is the current one, where the AutoIt script runs from. That's great - but, if it's on a CD and you've just ejected it using CDTray(), then you get an error about not reading drive X.

To get round the problem I used a Run("CMD.EXE", "C:\") command to set the default path to C:\. It works but I was wondering if there was a more elegant way of doing this.

Michael


Michael

Share this post


Link to post
Share on other sites
Nutster

FileChangeDir ("C:\")

; this function is present inĀ  AutoIt 3.0.91 and above

Yippee! :whistle:

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

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.