Jump to content

Recommended Posts

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.


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...

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...