I'm new to Windows scripting. I'd appreciate a kick start.
I'm trying to run the following script on my local PC using Cscript at the CMD line. I'm doing this just to get started, to figure things out. I've tried this in Jscript too. Now trying in VBS. I've done this
: cscript //H:Cscript //nologo //s (this worked).
Nothing is working. What's the secret?
Thank you.
Sub ManipFiles
Dim fso, f1
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.GetFile("c:\testfile.txt")
f1.Copy ("c:\tmp\testfile.txt")
End Sub
>> Stay informed about: New to WSH