|Alright, here's my code:|
SET /P Fol=Type the name of the folder to open:
IF Fol=="" ECHO Please enter something.
IF %dirz%==%source% SET dirz=%dirz%%Fol% & CLS & GOTO EXPLORE
The user enters the name of the folder to open, and if Dirz is at C:\, the program simply adds the name of the folder to C:\ to make it look like C:\folder
After that, it needs to add a \ after the path and then the folder name to make it look like C:\folder\subfolder instead of C:\foldersubfolder.
HOWEVER, when trying to open a sub folder, it outputs the Path as
C:\folder \subfolder with a space inbetween C:\folder and \subfolder and gets an error.
How do I prevent it from adding the space?
Help is appreciated, thanks in advance.