Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


samkenny
2010-10-12T03:19:53Z
How do I copy files from one folder to another if there are spaces in the name? I am using a UNC path.

e.g. \\mydomain.com\namespace\my folder1 to \\mydomain.com\namespace\my folder2

I have tried surrounding the path with a " but then I get an error: illegal characters in path. if I use ' then the error is path not found. I even tried %20 in place of the space.
Sponsor
Forum information
Support
2010-10-12T07:59:55Z
Spaces should not be a problem. You should not use " in the path. What error do you get when using the normal path with spaces and without "?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
samkenny
2010-10-12T15:47:41Z
Could not find a part of the path '\\mydomain.com\myfolder A'.

If I copy this path into Windows Explorer it works fine.
Support
2010-10-12T18:18:44Z
The problem is that you need to use a Credential. VisualCron is running as SYSTEM account and has by default no access to network drives. Add a Credential that matches a user that has access to that server.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
samkenny
2010-10-13T03:06:26Z
Thanks, please consider this closed.

There was a Credential and it could see other folders in the parent directory - but it was coincidental these all did not have spaces in them. The folder in question needed the correct permissions so that the set Crednetial could access it, which resolved the issue.

Sorry for the confusion.
milian foster
2023-04-19T10:45:49Z
Without more information about the specific situation and what software or system you are referring to, it is difficult to provide a precise answer. However, in general, if you use a file path with spaces in it but do not enclose it in quotation marks, you may encounter errors such as "file not found" or "invalid path". This is because spaces are interpreted as separators between different parts of the path, so the system may not be able to locate the correct file or directory if there are spaces in the name.

To avoid this issue, you can either use quotation marks around the entire file path (including the spaces) or replace the spaces with underscores or other characters that do not cause issues with the system's file path interpretation.
Scroll to Top