Sorry jetzt mit zeilenumbrüchen an den richtigen Stellen...

@if (@CodeSection == @Batch) @then

@echo off

rem Use %SendKeys% to send keys to the keyboard buffer

set SendKeys=CScript //nologo //E:JScript "%~F0"

rem Start the other program in the same Window

start "" /B cmd

%SendKeys% "echo off{ENTER}"

set /P "=Wait and send a command: " < NUL

ping -n 5 -w 1 127.0.0.1 > NUL

%SendKeys% "echo Hello, world!{ENTER}"

set /P "=Wait and send an Up Arrow key: [" < NUL

ping -n 5 -w 1 127.0.0.1 > NUL

%SendKeys% "{UP}"

set /P "=] Wait and send an Enter key:" < NUL

ping -n 5 -w 1 127.0.0.1 > NUL

%SendKeys% "{ENTER}"%

SendKeys% "exit{ENTER}"

goto :EOF

@end

...zur Antwort

Sowas in der Art?

@if (@CodeSection == @Batch) @then

@echo off

rem Use %SendKeys% to send keys to the keyboard buffer set SendKeys=CScript //nologo //E:JScript "%~F0"

rem Start the other program in the same Window start "" /B cmd

%SendKeys% "echo off{ENTER}"

set /P "=Wait and send a command: " < NUL ping -n 5 -w 1 127.0.0.1 > NUL %SendKeys% "echo Hello, world!{ENTER}"

set /P "=Wait and send an Up Arrow key: [" < NUL ping -n 5 -w 1 127.0.0.1 > NUL %SendKeys% "{UP}"

set /P "=] Wait and send an Enter key:" < NUL ping -n 5 -w 1 127.0.0.1 > NUL %SendKeys% "{ENTER}"

%SendKeys% "exit{ENTER}"

goto :EOF

@end

...zur Antwort

Hallo, Windows Server ist ein eigenständiges Betriebssystem! Wenn du das installierst ist dein Windows 7 natürlich überbügelt und kommt auch nicht von selbst wieder...Der Testzeitraum bedeutet, dass du das Betriebssystem 60 Tage testen kannst und danach fährt der Rechner nicht mehr (oder nur noch sehr eingeschränkt) hoch...

Mal ne Gegenfrage: Wofür willst du ein Server-Betriebssystem installieren, wenn du keine Ahnung davon hast. Als Privat-Anwender kannst du mit der Server-Version nix anfangen...

...zur Antwort