SolutionSam Posted November 16, 2010 Share Posted November 16, 2010 Hi All: I need some help running an AutoIT executable from the optical drive of a laptop, if something other than the drive with the CD in it is D: HP laptops are an example, where HP has taken the D: for their recovery partition. I have seen examples that use DriveGetDrive or DriveGetType to pop a message box, but I want to use either one of them to refer to a batch file on the CD. What would that look like? I am still learning to set variables, and can't really see how to use something like "CDROM" or "NTFS" this way. I am new to AutoIT - I was basically told to use it when I started in this job 3 weeks ago, but have no real help, so please assume I know nothing (a safe assumption). Thanks, Sam Link to comment Share on other sites More sharing options...
SolutionSam Posted November 16, 2010 Author Share Posted November 16, 2010 Thanks, I'll try this. It also occured to me this moring that I can just copy the files to the HD and run them from there, then delete them. I am just getting ready to rewrite now. Link to comment Share on other sites More sharing options...
SolutionSam Posted November 17, 2010 Author Share Posted November 17, 2010 Still working on this - Is there a way to combine DriveGetType and IsKeyword to make it choose an action based on the type of drive at D:? Say it is a CDROM - DriveGetType would spit out the word CDROM, which, if possible, I would pass to IsKeyword... How would that be done? Link to comment Share on other sites More sharing options...
SolutionSam Posted November 18, 2010 Author Share Posted November 18, 2010 OK, I see what you are doing there. There is definitely a lot to know. Thanks! Link to comment Share on other sites More sharing options...
SolutionSam Posted November 18, 2010 Author Share Posted November 18, 2010 Just an update, FYI... I ended up using @Comspec and the .msi files, WinActivate and WinWaitActive, using Send commands to pass the keyboard input to the installer. SplashText to cover the untidy mess, BlockInput to make sure nobody peeks while all of that is going on. So, more than one way to get to the goal. Thanks for your help. Sam 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