EDIT: My first problem has already been fixed! Thanks to penpen! But here comes another problem.
Everything is fixed but I don't know how to protect these. I tried adding/removing quotes but it shows me error.
I found out that you can't protect these with double quotes as it will crash the program:
Code: Select all
if /p variableExample==1 goto someWhere
But these are the ones I can't protect and without protecting it, I can't echo them into a file.
CODE:
Code: Select all
echo set "char=%userInput:~0,1%" >> "%userprofile%\Documents\TheRivalsRage\Encrypt-Decrypt\functions\Encrypt.bat"
echo set "userInput=%userInput:~1%" >> "%userprofile%\Documents\TheRivalsRage\Encrypt-Decrypt\functions\Encrypt.bat"
I receive the following error.
ERROR:-
Code: Select all
set "char=~0,1userprofile\Documents\TheRivalsRage\Encrypt-Decrypt\functions\Encrypt.bat"
set "userInput=~1userprofile\Documents\TheRivalsRage\Encrypt-Decrypt\functions\Encrypt.bat"