|
Prev: VBS reading all groups from OU and there members
Next: How to do something in an VBS script for all worksheets of an Excel file?
From: Daryll Combs on 24 Jun 2008 13:12 I am new to VBScripting but have done some development in VBA. I have a procedure that I have written to run on Windows-XP systems connected to Windows-2000 server. Whole point of script is to do some intelligent file copying with msgboxes to user to confirm intentions, file sizes, dates, times, etc. All works well EXCEPT for the actual file copy. Even though I can access mapped shares on server and other users local hard disk published shares from command prompt and list contents and copy files at wiil, the copyfile operation in the script invariably fails with error 70. What is the point of having a copyfile operation, which I have used with great success in vba, that basically is unable to copy files in code. Any suggestions from anyone would be greatly appreciated, as I am greatly frustrated. -- W. Daryll Combs Jennica Data Systems Inc. Cincinnati OH
From: Pegasus (MVP) on 24 Jun 2008 14:55
"Daryll Combs" <wdcombs(a)jennicadatasystems.wdc/us> wrote in message news:07D67AE3-5E6B-4279-AD9D-99BE67900349(a)microsoft.com... >I am new to VBScripting but have done some development in VBA. I have a > procedure that I have written to run on Windows-XP systems connected to > Windows-2000 server. Whole point of script is to do some intelligent file > copying with msgboxes to user to confirm intentions, file sizes, dates, > times, etc. All works well EXCEPT for the actual file copy. Even though I > can > access mapped shares on server and other users local hard disk published > shares from command prompt and list contents and copy files at wiil, the > copyfile operation in the script invariably fails with error 70. What is > the > point of having a copyfile operation, which I have used with great success > in > vba, that basically is unable to copy files in code. Any suggestions from > anyone would be greatly appreciated, as I am greatly frustrated. > -- > W. Daryll Combs > Jennica Data Systems Inc. > Cincinnati OH The CopyFile method works very well when properly implemented. You need to post your code so that someone can point out where you when wrong. |