Einzelnen Beitrag anzeigen
Alt 27.04.2003, 23:18   #18
franznovak
Inventar
 
Registriert seit: 13.12.2002
Alter: 42
Beiträge: 2.564


Standard

win.com hat einige undokumentierte Switches (hauptsächlich für Win9x): http://members.aol.com/axcel216/secrets.htm#WIN (siehe unten win.com)

Auszug ohne weitere Links:
Zitat:
WIN.COM HIDDEN PARAMETERS

WIN.COM is the Windows GUI (Graphical User Interface) command line executable located in %winbootdir% (default is C:\WINDOWS).
IMPORTANT: To become familiar with the WIN.COM command line parameters (the documented ones anyway): WIN /? from any DOS prompt, to display the WIN.COM help screen.
.....

WIN /W [Windows 95 and above ONLY]
WIN /W generates this message:

"Press any key to continue...
Pressing a key reboots the system back to Windows 95 (98)."

waiting for user input (key press), and then restarts the computer (warm reboot), restoring the original CONFIG.SYS and AUTOEXEC.BAT files in the root directory of the boot drive from CONFIG.WOS and AUTOEXEC.WOS (if any). This is useful when the computer is restarted after interrupting a "single" mode MS-DOS session, because of this CONFIG.SYS line:
DOS=SINGLE
which does NOT allow Windows 95/98 GUI to load.
This switch works ONLY IF executed from the native/real/true MS-DOS mode OUTSIDE the Windows 95/98 GUI, NOT from WITHIN Windows in a DOS box/session.
NOTES:

The .WOS files are created when you run a DOS based program that requires a separate MS-DOS reboot setup (in "single" mode), and you have selected the "Specify a new MS-DOS configuration" check box in the PIF file Properties tab.
For more details see "MS-DOS PROMPT", also in MYTIPS95.TXT [part of W95-11D.EXE].

WIN /WX [Windows 95 and above ONLY]
WIN /WX automatically restarts the computer (warm reboot), without prompting or waiting for input (key press), and restores the original CONFIG.SYS and AUTOEXEC.BAT files in the root directory of the boot drive from CONFIG.WOS and AUTOEXEC.WOS (if any). This is useful when the computer is restarted after interrupting a "single" mode MS-DOS session, because of this CONFIG.SYS line:
DOS=SINGLE
which does NOT allow Windows 95/98 GUI to load.
This switch works ONLY IF executed from the native/real/true MS-DOS mode OUTSIDE the Windows 95/98 GUI, NOT from WITHIN Windows in a DOS box/session.
NOTES:

The .WOS files are created when you run a DOS based program that requires a separate MS-DOS reboot setup (in "single" mode), and you have selected the "Specify a new MS-DOS configuration" check box in the PIF file Properties tab.
For more details see "MS-DOS PROMPT", also in MYTIPS95.TXT [part of W95-11D.EXE].

/Z [Windows 95B OSR 2.1 and above ONLY]
WIN /Z automatically forces the ATX power supply to (soft-)power off the computer ONLY on ATX motherboards, without prompting or waiting for input (key press).

This switch works ONLY IF executed from the native/real/true MS-DOS mode OUTSIDE the Windows GUI, NOT from WITHIN Windows in a DOS prompt/box/session.
This DOS secret suggested by Shaminda (shaminda@asia.com).
%windir%\win.com /Z
____________________________________
„Wenn wir die Handschrift des Schöpfers irgendwo sehen könnten, dann wohl bei den grundlegenden Naturgesetzen ... \" Steven Weinberg Nobelpreisträger 1979 für Physik
„Der liebe Gott würfelt nicht\". Albert Einstein Nobelpreisträger für Physik 1921
„Die Evolution selbst wird akzeptiert, nicht weil man etwas Derartiges beobachtet hätte oder weil man sie durch eine logische zusammenhängende Beweiskette als richtig beweisen könnte, sondern weil die einzige Alternative dazu, der Schöpfungsakt Gottes, einfach unglaublich ist.\" Univ. Prof. D.M.S. Watson
\"Eine Zivilisation soll danach beurteilt werden, wie sie ihre Minderheiten behandelt.\" Mahatma Gandhi

franznovak ist offline   Mit Zitat antworten