Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

change cd-rom drive letter during unattend install

Featured Replies

To change the cdrom drive letter to say z: drive you can use the following vbs file.

' CD-ROM Change drive letter to Z:

Option Explicit

dim objShell, objFs, objDriveCollection, wshSysEnv, strTemp, strSystemRoot, intDriveLetter
Dim objDrive, objFile, strDriveType, strCMD, strVolume, strDrivesDone

Set objShell = WScript.CreateObject("WScript.Shell")
Set objfs = CreateObject("Scripting.FileSystemObject")
Set objDriveCollection = objfs.Drives

Set WshSysEnv = objShell.Environment("PROCESS")
strTemp = WshSysEnv("Temp")
strSystemRoot = WshSysEnv("SystemRoot")

intDriveLetter=90 ' ascii for Z
strDrivesDone="" ' Drives that have been remapped. Prevents CDs being changed again after being moved higher up the alphabet

For Each objDrive in objDriveCollection

Select Case objDrive.DriveType
 Case 0: strDriveType = "Unknown"
 Case 1: strDriveType = "Removable"
 Case 2: strDriveType = "Fixed"
 Case 3: strDriveType = "Network"
 Case 4: strDriveType = "CD-ROM"
 Case 5: strDriveType = "RAM Disk"
End Select

if strDriveType = "CD-ROM" AND instr(strDrivesDone,objDrive.DriveLetter)=0 then

 ' discover volume ID
 strCMD = strSystemroot & "\system32\cmd /c mountvol.exe " & objDrive.DriveLetter & ": /L > " & strTemp & "\volume.txt"
 objshell.run strCMD,0,true
 Set objFile = objfs.OpenTextFile(strTemp & "\volume.txt", 1)
 strVolume = ltrim(objFile.ReadLine)
 objFile.close

 ' unmount CD-ROM
 strCMD = "mountvol.exe " & objDrive.DriveLetter & ": /d"
 objShell.Run strCMD,0,true

 ' Remount CD-ROM
 strCMD = "mountvol.exe " & chr(intDriveLetter) & ": " & strVolume
 objShell.Run strCMD,0,true
 strDrivesDone=strDrivesDone & chr(intDriveLetter)
 intDriveLetter=intDriveLetter-1

end if


Next

Copy and paste the above code and save as a .vbs file

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.