Have a script that gets the current path and grabs the last two directories in that path
for /F "tokens=5,6 delims=\" %%a in ("%0") do (
ECHO %%a
ECHO %%b
)
output is:
2017
Customer 91 Folder
I need the output to look like:
2017
Customer\ 91\ Folder
I am using this variable to envoke and rsync script in linux which needs the directory path spaces escaped.
Thanks!