roadrunner Posted February 8, 2004 Share Posted February 8, 2004 Hi, I had a very simple scripe that worked in v2 but not in v3, it would look at the drive letters and return a drive letter of a cd. This does not work in version 3, has any one got any ideals. All I need is to put the cd into the drive and to install patches, these are sometimes in sub foldersand need the drive letter they are being installed from. here is my old scripe which was written by another member on the forum. ;look to see which drive the cd is in msgbox,0,autoit, INSTALLING PATCH PLEASE PRESS OK. SetBatchLines,150 SetEnv,alpha,defghijklmnopqrstuvwxyz SetEnv,count,0 Repeat,26 EnvAdd,count,1 StringMid,char,alpha,%count%,1 ;checks the charter in %char% and the file path to see if the files are in the cd selected IfExist,%char%:\\patch\\patch1.2.exe,SetEnv,cd,%char% EndRepeat Link to comment Share on other sites More sharing options...
jpm Posted February 8, 2004 Share Posted February 8, 2004 You better to use the DriveGetDrive ( "CDROM" ) Just take sometime to read the help. It is not a tutorial but reading is allways a good idea Link to comment Share on other sites More sharing options...
roadrunner Posted February 8, 2004 Author Share Posted February 8, 2004 thanks, alway pay's to look at the help files first. 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