Search found 2 matches

by xpdev
15 Feb 2021 06:28
Forum: DOS Batch Forum
Topic: Why does this run net1.exe?
Replies: 15
Views: 12474

Why does this run net1.exe?

Why does typing this run net1.exe?

Code: Select all

"n<z
C:\Windows\System32\net1.exe doesn't have any letter Z in it.
I set the PATH to just System32 and it still runs net1.exe
Same thing with:

Code: Select all

"n<l
by xpdev
07 Feb 2021 12:50
Forum: DOS Batch Forum
Topic: Cmd.exe bug with special characters
Replies: 2
Views: 3737

Cmd.exe bug with special characters

I have a batch file called `#'`#!^% ^%os%'&!&(.bat with the following: @echo off echo Test echo %0 echo Test 2 If I escape the characters like this: set p=% "`#'`#!^%p% ^%p%os%p%'&!&(.bat" Then every command works. But if I escape them like this: `#'`#!^^^%" "^^^%os^%'^&!^&^(.bat Then only the first...