Jump to content

Install From Cd


Recommended Posts

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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...