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.

Autoit Cdrom Variable?

Featured Replies

Hi all ok

i am using autoit for some of my pgms taht dont have switches.... and i want to install them form cd.... ive tried running a cmd file that sets the cdrom variable and then starts the autoit exe... but when it starts it cant execute the setup file in the script.......

is there a way to set the cdrom variable in an autoit script????

also is there a way to make a folder inside the cd "the root fodler" for an install

ie :

cdrom-

creative

-install

-setup.exe

logitech

ms

ie the setup.exe file was in the roor folder ont he original cd that had the software..... it wont run unless it's in the root folder........ so is there a way to make the install folder the root folder for a bit?????

I woudn't know the answer, however, a temporary solution would be to use a variable and just have someone put the letter in to equal that variable. (assuming you know what your drive letter is)

Well this should work if the setup file is next to the script:

Run ( "setup.exe" )

Provided of course your batch file started the autoit script...which you stated it did.

Now if the setup file is not next to the script but insteed nested in another folder below the auto it script you would have to do some thing like so:

Run ( @ScriptDir & "\folder\setup.exe" )

@ScriptDir is what ever the path is to the location of the autoit script...so you can move the script to your hard drive or cd usb drive and hell probably a network drive and it would still work fine as long as you can execute the autoit script to being with. Tho I haven't tested it via network so...don't quote me. :)

My self I always have the setup file next to my autoit script...that said I also use the following code to excute files:

; Execute Installer
If FileExists ( @ScriptDir & "\setup.exe" ) Then
Run ( @ScriptDir & "\setup.exe" )
Else
Exit
EndIf

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.