Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Error copying files

Reply
 
Old 04-15-2009   #1 (permalink)
JeffH


 
 

Error copying files

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 System SpecsSystem Spec
Old 04-15-2009   #2 (permalink)
mr_unreliable


 
 

Re: Error copying files

JeffH wrote:
Quote:

> 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 System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Error 0x800703EE and 0x8007045D, Error when copying files General Discussion
Error copying files around 45%. Vista hardware & devices
error when copying files Vista installation & setup
error while copying files Vista installation & setup
An error occurred while copying Setup files. Error code is [800702 Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46