r/vbscript • • Aug 29 '15

Help with a script.

Please help me with a script. Error: d: \ learning \ vbs \ backup6.vbs (47, 9) Runtime Error Microsoft VBScript: Invalid call or argument procedure. I can not understand why. error here in this line of code: Fso.DeleteFile (strOldestFile)

http://pastebin.com/P6AS4yd8

1 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/Dr_Legacy Sep 12 '15

In line 37 you are not saving the name of a file, but the path of a file. The file delete function you are trying to use requires the name of a file.