Sign in to follow this  
Followers 0
roadrunner

Install From Cd

3 posts in this topic

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 :whistle:

Share this post


Link to post
Share on other sites



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 :whistle:

Share this post


Link to post
Share on other sites

thanks, alway pay's to look at the help files first.

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