Sign in to follow this  
Followers 0
MCT

need help finding file options in autoit

2 posts in this topic

hey guys, i have a batch script, which lets me make an iso out of a file i right click, with the folder name being the iso name, how can i convert this to au3?

::Automatic naming ISO script
@ECHO OFF
SET DIRE=%1
TITLE Creating ISO Image of %DIRE%
ECHO.
REM ECHO Removing any possible attributes set on %DIRE% and its subfolders...
REM ATTRIB -R -H %DIRE% /S /D
FOR /F %%G IN ("%DIRE%") DO SET DCT=%DIRE: =_%
FOR /F %%Q IN ("%DCT%") DO SET LABL=%%~nQ

:ASK
SET REPLY=
SET /P REPLY=Make ISO Bootable Y/N?
SET REPLY=%REPLY:~0,1%
IF "%REPLY%"=="y" GOTO BOOTISO
IF "%REPLY%"=="Y" GOTO BOOTISO
IF "%REPLY%"=="n" GOTO DATAISO
IF "%REPLY%"=="N" GOTO DATAISO
ECHO Invalid Response! try again.
GOTO ASK

:BOOTISO
ECHO.
ECHO Creating ISO...
CDIMAGE.EXE -l%LABL% -h -j1 -m -o -b%SystemRoot%\system32\xpBoot.img %DIRE% %DIRE%.iso
ECHO.
GOTO ENDIT

:DATAISO
ECHO.
ECHO Creating ISO...
CDIMAGE.EXE -l%LABL% -yd -n -h -x -o -m -d %DIRE% %DIRE%.iso
ECHO.
GOTO ENDIT

:ENDIT
PAUSE
EXIT

Share this post


Link to post
Share on other sites



anyone? thanks

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