Welcome to ServerForumz.com!
FAQFAQ    SearchSearch      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:   
Related Topics:
WMI-> oMaster.Printers 800706BA RPC server unavailable - I'm looking for a solution to quering my 4 print servers which have 1400 printers on each one. The script works great on the initial server but when it tries to go to next server (Server02), it comes back with the RPC error. It then continues the loop an...

Progress Bar - Hi Does anyone know how to create a progress bar in VBScript? I'm copying three files using VBS and would like to preview a progress bar for the users. Thanks in advance.

changing local account passwords in ASP - Hello! I am trying to create a script to run in an ASP page that will allow a user to change a password for identical LOCAL accounts on two servers. The code I am using I got from the Technet script example but it won't run in ASP. It is: Set objUse...

Batch Programming Woes. OS Checker - I have created a batch file to set a variable for different OS's. (Other than the Standard Ones) REM Begin~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @echo off cls echo Stand by inspecting your system. echo. echo OS check :check1 for /f "usebackq..

Is it possible? Remotely executing a process... - Is it possible to remotely execute a process via WMI using alternate credentials? This is really stumping me. I am writing a program to automatically push out MS patches. It works great for domain machines... using the following. Set objWMIServic...
   Windows Server (Home) -> Windows Server Scripting All times are: Pacific Time (US & Canada)
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 ]