Michael_Gerrard Posted February 4, 2004 Share Posted February 4, 2004 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 Link to comment Share on other sites More sharing options...
CyberSlug Posted February 4, 2004 Share Posted February 4, 2004 FileChangeDir ("C:\") ; this function is present in AutoIt 3.0.91 and above Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Nutster Posted February 5, 2004 Share Posted February 5, 2004 FileChangeDir ("C:\"); this function is present inĀ AutoIt 3.0.91 and aboveYippee! David NuttallNuttall 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 comment Share on other sites More sharing options...
Michael_Gerrard Posted February 5, 2004 Author Share Posted February 5, 2004 Thanks lots!! Michael Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now