brotherik Posted November 14, 2007 Share Posted November 14, 2007 hello!!!!I have done a unnatended windows and i install software with method runonceex.In my runonce.cmd file i have done a first .cmd file to prepare the installation and i have done a final file to clean,move folders,delete .lnk .....etc.the problem is with the last .cmd because when it work it show me the typical black screen (of msdos) and i don´t understand the reason because i have included un @echo off.the first .cmd don´t show me nothing and work fine.this is my final .cmd:@echo offFOR %%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:\LEAME.HTM SET CDROM=%%i:MKDIR "%systemdrive%\Documents and Settings\All Users\Escritorio\MANTENIMIENTO"MKDIR "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\COMPRESORES\7-Zip"MKDIR "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\NAVEGADORES\Mozilla Firefox"MKDIR "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\GRABACION\NERO"MKDIR "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\REPRODUCTORES\VideoLAN"COPY "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\7-Zip\" "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\COMPRESORES\7-Zip"COPY "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\Mozilla Firefox\" "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\NAVEGADORES\Mozilla Firefox"XCOPY /a /e /k "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\VideoLAN" "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\REPRODUCTORES\VideoLAN"RMDIR /Q /S "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\7-Zip"RMDIR /Q /S "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\Mozilla Firefox"RMDIR /Q /S "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\VideoLAN"RMDIR /Q /S "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Programas\Nero"DEL "%systemdrive%\Documents and Settings\All Users\Escritorio\VLC media player.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Escritorio\Nero StartSmart.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Men£ Inicio\Windows Catalog.lnk"REGEDIT /s %CDROM%\FINALIZACION\borrar.regEXIT Link to comment Share on other sites More sharing options...
Arie Posted November 14, 2007 Share Posted November 14, 2007 You seem to be mistaken as to what @ECHO OFF does.If you want to hide the window, use CMDOW for example; CMDOW @ /HID.To learn what @ECHO OFF does, compare the differences when you run the following two batch scripts:With @ECHO OFF...@ECHO OFFECHO This is a testPAUSEversus without @ECHO OFFECHO This is a testPAUSEHope this helped. Link to comment Share on other sites More sharing options...
brotherik Posted November 14, 2007 Author Share Posted November 14, 2007 i understand it nowthanks!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now