replace invalid characters when creating new folder

Features wanted...
Post Reply
yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

replace invalid characters when creating new folder

Post by yusef88 »

Code: Select all

new("New:Folder", "dir");
if the name has invalid characters then the code should auto remove them just like the rename command

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: replace invalid characters when creating new folder

Post by highend »

I disagree...

Regarding your case:
How should new() know if you've just missed the "\" to make it a full path or accidentally typed the ":"?

Let's say the ":" get's removed and you next script command copied 200 gb to this new folder.
Too bad if the location you wanted has the space but your current folder hasn't...
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: replace invalid characters when creating new folder

Post by yusef88 »

Well, thank you

Post Reply