
I recently read an article about Windows Script Host (WSH) 2.0. Before I become really interested, I have one question: can I use WSH to rename existing files? I downloaded the latest documentation from Microsoft, but I found no mention of this. Yes, you can. Through the use of the FileSystem object (as well as the File object) you can effectively rename files. The problem is you would expect to find it in the documentation under a name like Rename. Actually, the functionality is supplied via the MoveFile method. The only technical difference between a file move and a rename is that move usually indicates the ability to change the location ..
|