MSFN Forum: AutoIT Find Drive Letter of VirtualCloneDrive - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AutoIT Find Drive Letter of VirtualCloneDrive Rate Topic: -----

#1 User is offline   cardguy1000 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 17-December 03

Posted 28 April 2005 - 03:48 AM

Hey guys, I'm trying to make some installation scripts that will mount an image with Vitual Clone Drive, then the script will open the setup.exe within that Virtual Drive I've found out that you can: Run(@ProgramFilesDir & 'VCDmount.exe C:\MyFolder\disk1.iso') and it'll automount that iso. Next I need to launch the setup.exe file on the mounted ISO (not the autorun.exe)

My question is this:
Is there a way to find out which drive letter the virtual clone drive is using (through code) so I could just call X:\setup.exe (assuming x is the drive letter), I know I could just look in my computer and use that in the code, but then if I reformat, add a drive, or the like my drive letter will change.


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 28 April 2005 - 04:07 AM

My _FindCD function. Can find a file in the root of the CD, or can search by CD name. ;)

Edit: Added small change to msgbox operation.

Attached File(s)



#3 User is offline   ukg1jzj 

  • Group: Members
  • Posts: 5
  • Joined: 20-April 05

Posted 28 April 2005 - 06:32 AM

A CMD file can also do this for you.. just copy the text from the code box and paste into {yourchoice}.cmd (e.g.: vcd.cmd)

@echo off
:ChkCDRom

 Set CDROM_DRIVE=N/A

:ChkCDRom
  Echo Finding CD-Rom drive
    If exist D:\Setup.exe SET CDROM_DRIVE=D:
    If exist E:\Setup.exe SET CDROM_DRIVE=E:
    If exist F:\Setup.exe SET CDROM_DRIVE=F:
    If exist G:\Setup.exe SET CDROM_DRIVE=G:
    If exist H:\Setup.exe SET CDROM_DRIVE=H:
    If exist I:\Setup.exe SET CDROM_DRIVE=I:
    If exist J:\Setup.exe SET CDROM_DRIVE=J:
    If exist K:\Setup.exe SET CDROM_DRIVE=K:
    If exist L:\Setup.exe SET CDROM_DRIVE=L:
    If exist M:\Setup.exe SET CDROM_DRIVE=M:
    If exist N:\Setup.exe SET CDROM_DRIVE=N:
    If exist O:\Setup.exe SET CDROM_DRIVE=O:
    If exist P:\Setup.exe SET CDROM_DRIVE=P:
    If exist Q:\Setup.exe SET CDROM_DRIVE=Q:
    If exist R:\Setup.exe SET CDROM_DRIVE=R:
    If exist S:\Setup.exe SET CDROM_DRIVE=S:
    If exist T:\Setup.exe SET CDROM_DRIVE=T:
    If exist U:\Setup.exe SET CDROM_DRIVE=U:
    If exist V:\Setup.exe SET CDROM_DRIVE=V:
    If exist W:\Setup.exe SET CDROM_DRIVE=W:
    If exist X:\Setup.exe SET CDROM_DRIVE=X:
    If exist Y:\Setup.exe SET CDROM_DRIVE=Y:
    If exist Z:\Setup.exe SET CDROM_DRIVE=Z:

   If [%CDROM_DRIVE%]==[N/A] (
      Echo.
      Echo *** THE INSTALLATION CD WAS NOT DETECTED ***
      Echo.
      Pause
       )
:Start Setup
%CDROM_DRIVE%\setup.exe


Rgds
Jan V.

#4 User is offline   erik_demon 

  • Master Chief
  • PipPip
  • Group: Members
  • Posts: 253
  • Joined: 22-August 04

Posted 28 April 2005 - 06:38 AM

@ukg1jzj

Sorry, this won't work for an AutoIt script.

@ MHz
Thnx, this seems like something I could use :thumbup

#5 User is offline   cardguy1000 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 17-December 03

Posted 28 April 2005 - 11:44 AM

MHz, very sexy script indeed, exactly what I was looking for thanks!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy