Closed cleanremote closed 2 years ago
cmd /e:off
), KMS_VL_ALL_AIO will fail:
C:\>KMS_VL_ALL_AIO.cmd
The syntax of the command is incorrect.
AMD64==AMD64 was unexpected at this time.
Why assuming bug-intended scenarios? do you normally have those conditions? :)
echo:
instead of echo.
in my batches is that if I (or other batch file) accidentally echos out into a file called echo that will throw this error. It should be a pretty easy replace/fix.@cleanremote:
So if one somehow renames the file it may not run properly, like KMS_VL_ALL_AIO.txt
it wont run at all. I would be interested in a real world scenario where this might occur without intend. Also what should be the proposed fix?
I would be interested in a real world scenario where this might occur without intend. Also what should be the proposed fix?
echo/
is better than echo:
@setlocal EnableExtensions DisableDelayedExpansion
echo(
should be the best version.If CMD's command extensions are disabled, it's either the user aware of that, or his OS is messed-up
i actually already know about echo(
thing being the best, but regular echo is still valid in normal real scenarios :)
Idm making a pull to make all echo. into echo(. But depends if @abbodi1406 wants this. If not that i suggest this issue can be closed.
I'm not into it even Notepad3 and Notepad++ don't like orphaned ( :)
Great, then this issue can be closed :)
@cleanremote @abbodi1406 this issue can also be closed.
echo
(without an extension) in the current working directory, and run KMS_VL_ALL_AIO, CMD will fail at theecho.
command:KMS_VL_ALL_AIO%os%.cmd
, and run the script unelevated, it will try to run a file calledKMS_VL_ALL_AIOWindows_NT.cmd
instead.