MSFN Forum: a little problem with this .cmd ;show me the black screen? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

a little problem with this .cmd ;show me the black screen? Rate Topic: -----

#1 User is offline   brotherik 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 18-October 07

Posted 14 November 2007 - 06:38 AM

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 off

FOR %%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.reg

EXIT



#2 User is offline   Arie 

  • One Man Army
  • PipPipPipPipPip
  • Group: Members
  • Posts: 835
  • Joined: 27-August 07

Posted 14 November 2007 - 08:04 AM

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 OFF
ECHO This is a test
PAUSE


versus without @ECHO OFF
ECHO This is a test
PAUSE


Hope this helped.

#3 User is offline   brotherik 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 18-October 07

Posted 14 November 2007 - 12:14 PM

i understand it now

thanks!!! :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy