Welcome to ServerForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

New to WSH

 
   Windows Server (Home) -> Windows Server Scripting RSS
Next:  moving profile from workstation to server  
Author Message
pdubie




Joined: May 30, 2007
Posts: 1



(Msg. 1) Posted: Wed May 30, 2007 8:43 am
Post subject: New to WSH

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 
Back to top
Login to vote
Display posts from previous:   
   Windows Server (Home) -> Windows Server Scripting All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]