illegal characters in path

Jason-Engage

Новичок
Регистрация
30.05.2013
Сообщения
5
Реакции
0
Баллы
0
Hi I'm trying to copy (or write) to a file that doesn't exist. In some cases the app creates the file, in others it says 'illegal characters in path.' What are these illegal characters? (I noticed that '-' might be an illegal character, so I removed it, but I still get the msg.

It seems to work sometimes, and other times it doesn't...

ps. I run a test existance first, if doesnt exist, i 1) Try to copy a blank version or 2) Use the write text to a non-existant file. (writing text to non-existent file, seems to create one... sometimes..)

thanks
 
\ / : * ? " < > | are illegal characters in file names or paths. You can easily take care of all of these by using wordprocessing and Replace.

Put this string in for what to search for... \\|/|:|\*|\?|"|<|>|\| and use Regex as the search type. In the what to replace you can put anything you want except for those characters of course... {-String.Space-} works nicely.
 
Thanks I'll give it a try. I also found out that there were line breaks in my text file that I could only see using notepad++.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)