.bat files not coupled to cmd.exe by default?
C:\WINDOWS\system32/etmain ?
That cannot be right...
Man, what a pit of snakes!!
Lets play a few maps... Reset your mind... :-)
set stringedtogether="%cur_path_et% %variable% \%cur_path% %variable2% " rem \"%1\"""
""C:\Users\Ron\vanilla_stripper.bat" \"C:\Users\Ron\" "+connect" " rem \"\"""
Adding the strings to stringedtogether nicely preserves the quotes... Hmm..
I cannot asses the validity of the resulting string as i dont know what happens there..
I can write C:\Users\[napo]\Desktop\et.exe +set base_path "C:\Users\[napo]\Desktop\" to registry from desktop directory
----------------------------------- > no space in this part
I can't write C:\Users\[napo]\Desktop\night mare\et.exe +set base_path "C:\Users\[napo]\Desktop\night mare\"
------------------------------------------------ > there is a space in this part
No quotes needed here?
I can't write C:\Games\Wolfenstein ET2\et.exe +set base_path "C:\Games\Wolfenstein ET2" from the ET directory
------------------------------------- > also space in this part
Just thinking out loud...
You can cut up the string in parts using the %1, %2, %3 placeholders.
If it needs to get dirtier that this maybe check out this link:
https://www.robvanderwoude.com/ntfortokens.php