Sign in to follow this  
Followers 0
Michael_Gerrard

Default Path

4 posts in this topic

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



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

Thanks lots!! :whistle:


Michael

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