• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Error copying files

J

JeffH

#1
Hi,

I have a backup script that is used to backup files in folders that have 150
+ characters in the pathname. Is there a way that I can avoid the error "
Cannot copy file: The filename you specified is invalid or too long. Specify
a different filename."

I searched the internet and the only solution I found was to create a
shorter filename and path. I was hoping that there is another solution.

Thanks in advance,
JeffH
 

My Computer

M

mr_unreliable

#2
JeffH wrote:

> I have a backup script that is used to backup files in folders that have 150
> + characters in the pathname. Is there a way that I can avoid the error "
> Cannot copy file: The filename you specified is invalid or too long.
hi Jeff,

In situations where your file path+name really is too long,
you can sometimes get away with using the "ShortPath" property.
The ShortPath property applies to either file or folder objects.

You can read all about it in the scripting docs.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)