Tech Support Guy banner
Status
Not open for further replies.
1 - 6 of 6 Posts

·
Registered
Joined
·
140 Posts
Discussion Starter · #1 ·
For the past few years I have used the following vbs script to perform a simple archive on files. After several updates earlier in the year, they quit working. Gives me the error "can't create object 'Scripting.FileSystemObject', error code: 800A01AD
I really havent had time to seriously research the issue until today.

The most prominent updates on my WinXP Pro system are SP3, "Windows Power Shell 1.0", and all the .net framework updates (08/14/09). I think that one of them may be the culprit. Is there a better way to write this simple code, or does anyone know what may be causing the error.

Code:
Dim fso
set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "C:\Data Files\Databases\Case Management.mdb", "L:\DB Backups\Case Management (" & Replace(FormatDateTime(Date(),2),"/","-")  & " " & Replace(FormatDateTime(Time(),4),":","") & ").bak"
set fso = nothing
Thank you,
JR
 

·
Registered
Joined
·
140 Posts
Discussion Starter · #5 ·
HOC1375 & draceplace - Thank you for responding (both links are to the same kb page. Went there and read the information, did the "wscript -regserver" command, but the error still occurs.
Any thoughts on how to get this working again, or another basic script to do the same thing?
Thanks,
JR
 
1 - 6 of 6 Posts
Status
Not open for further replies.
Top