Hi there
I'm trying to eliminate spaces when creating a folder through my scripts.
One of the section has a line called
Name=WScript.stdin.ReadLine().replace(/ +/,'');
which pass "Name" value to another function to create a folder and name it accordingly.
For some reason when i had the following through the cmd prompt as
My name is Test
The folder is getting created as MyName is Test while what i actually want is MyNameisTest
Can you advice please?
regards
I'm trying to eliminate spaces when creating a folder through my scripts.
One of the section has a line called
Name=WScript.stdin.ReadLine().replace(/ +/,'');
which pass "Name" value to another function to create a folder and name it accordingly.
For some reason when i had the following through the cmd prompt as
My name is Test
The folder is getting created as MyName is Test while what i actually want is MyNameisTest
Can you advice please?
regards