Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
VBS script to delete files
Name: djfox1 Date: October 25, 2006 at 17:56:50 Pacific OS: XP CPU/Ram: NA Product: NA
Comment:
Can any script gurus tell me why the following VBS script doesn't run at all on my XP box? It's supposed to echo all files newer than the specified date, but when I run it, I just get a command window and a blinking c:\ prompt: --- strDate = "20061001000000.000000+000"
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\cimv2") Set colFiles = objWMIService.ExecQuery _ ("Select * From CIM_DataFile Where CreationDate > '" & strDate & "'") For Each objFile in colFiles Wscript.Echo objFile.Name Next ---
Summary: I have a script that I'm trying to use to delete files off a server. I have a .txt file with the location of the files needing deleting. How do I get the VB script to look line for line through the ...
Summary: Hello, I am new to VBS.I am trying to write a script that would shorten the names of all the files in a folder and then delete multiple entries. For example: 187766501.pdf I only want to keep first 7 ...
Summary: I have some text files which i have to ftp them from one server to other. I can use PUT command, but for each file i have to call it. Assume that there are n no.of files. I have to ftp them in single ...