DryKillLogic Posted January 23, 2007 Share Posted January 23, 2007 (edited) I've got a problem maybe nanaki can help me. Well works perfect but I'm creating a unanttended windows in 2 cds and I'm using cdswith for the switch but when I insert the second cd shows the desktop and I dont want that. I want to launch WPI but the desktop should not be show it.This this the line I'm usingcmdow @ /HIDFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\WIN51IP.SP2 SET CDROM=%%i:start /wait cdswitch COLOSSUS2AP %CDROM% /r:%CDROM%\wpi.cmd /p:%CDROM%\pic.jpg /ll:50 /lt:15ECHO.EXITthis is my wpi.cmd@ECHO OFFREMREM WPI startup something.REM REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root.for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WIN51 set CDROM=%%i:echo Found CD-Rom as drive %CDROM%REM Determine the WPI startup path. REM If WPI should run off the CD the replace %dp0 with %CDROM%\PathToWPIset WPIPATH=%CDROM%\Install\wpiecho WPI will run from %WPIPATH%REM Hide this command windowstart %SystemRoot%\system32\cmdow.exe @ /HIDREM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO echo %%i:cd "%WPIPATH%"REM inicia WPIstart /wait WPI.htaREM Limpia el escritoriodel /S /Q "%userprofile%\Escritorio\*.lnk"del /S /Q "%AllUsersProfile%\Escritorio\*.lnk"REM Limpia el inicio regedit /s %systemdrive%\Windows\Temp\remove.regREM Reinicia el sistemastart /wait %Windir%\Temp\RESTART.exeexit:end Edited January 23, 2007 by DryKillLogic Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now