Execute UNC path containing literal %, in command line mode

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
jeb
Expert
Posts: 1041
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: Execute UNC path containing literal %, in command line mode

#16 Post by jeb » 08 Jul 2021 01:48

Hi noah,

you are right, I missed the SetEnvironmentVariable("my_percent", "%") part.
It works, but I still prefer a single batch line only solution.
I don't like the %=exitcode:~,0%, as it depends on a system variable, but I didn't find a better solution.

jeb

Post Reply