Windows Scripting

Status
Not open for further replies.

sms_solver

In the zone
If you know Visual Basic language or VBScript then you'll be able to script Windows

You will need example to learn, there are some example that comes with Windows itself, just search for files with *.vbs or something like that
 
OP
K

kinshuksunil

Broken In
More than VBScripting

Hi

I have been programming in VB for the past 2-3 years and so can boast of some basic vb programming skills, never tried vbs though. there is not much difference between the two either.

But i believe, windows Scripting is more than VB Scripting. I dont know how correct i am?

Kinshuk
 

Ashis

In the zone
Re: More than VBScripting

kinshuksunil said:
Hi

I have been programming in VB for the past 2-3 years and so can boast of some basic vb programming skills, never tried vbs though. there is not much difference between the two either.

But i believe, windows Scripting is more than VB Scripting. I dont know how correct i am?

Kinshuk

Programming VB Script For Last 2-3 years! :shock:
Good, then post Some Script to ShutDown, ReBoot & LogOff Windows XP;
The normal Way & the Force methord! :idea:

If U can Thanks! :D
 

sms_solver

In the zone
Install X-setup Pro, it has over 1700 windows customizing tips, and the best part is that it comes will all the scripts. So u can learn see the script that comes with X-setup! :)

*www.x-setup.net/
 
OP
K

kinshuksunil

Broken In
Reply!!!

Hi All

I simply dont want to customise windows through a software, but try real scripting...

Btw, whats so special in shutting dowm, rebooting and logging Off windows, any1 can do that with WinAP!...

Kinshuk
 

sms_solver

In the zone
I have made one Window Script file:
This script lets you ren one of either 4 programs
Note: if AntiVirus sw are installed they might not allow the script to run
Code:
'* Copyright (c) sms_solver 
'* Date:		4th-Jan-2004
'********************************************************************
' Global declaration 

OPTION EXPLICIT
ON ERROR RESUME NEXT
'Script starts from here
Call Main

Sub Main ()
const msg1 = "This is Script which enables you to run any one of"
const msg2 = "following 4 programs:"
const msg3 = "1)Calculator  2)Notepad  3)Paint  4)MineSweeper"
    
	WScript.Echo msg1 & vbcrlf & msg2 & vbcrlf & vbcrlf & msg3

	Dim WSHShell
	Set WSHShell = CreateObject("Wscript.Shell")
	reply = WSHShell.Run(whProg,,true)
End Sub

Private Function whProg() 
Dim choice, apName

	choice = InputBox("Enter 1 or calc, 2 for notepad, 3 for Paint, 4 for MineSweeper","Give Your Choice")
	Select Case choice
		Case 1: apName="calc.exe"
		Case 2: apName="notepad.exe"
		Case 3: apName="mspaint.exe"
		case 4: apName="winmine.exe"
		Case Else: apName="calc.exe"
	End Select
	whProg = apName
End Function
 
Status
Not open for further replies.
Top Bottom