didnt know always been told to use vb scripts instead of bat.files an now that i wanna try i cant find any tutorials on how to do it
vb script isnt the same as visual basic, thats why Nate asked if you were doing visual basic
vb script is essentially a dumbed down version of vb for quick and dirty scripting,
whoever told you to use it over batch files is right
Its essentially the same as a batch file with some syntax differences and additional functionality;
Miscorosft actually has quite a good set of documents for it:
VBScript User's Guide
Good luck
'Force all variables to be declared
Option Explicit
'Sets Global Variable Names
Dim strVariable 'this is a variable
'Main body of code
strVariable = "1"
If strVariable = "1" then 'this is the structure of a if..then..else loop
MsgBox "The if statement is true"
Else
MsgBox "The if statement is false"
End if
Call aSubRoutine 'this is how you call a subroutine
'***Subroutines***
Sub aSubRoutine 'this is how you declare a subroutine
Dim strlocalVariable 'this is how to declare a local variable, it only exists
' inside this sub routine
strlocalvariable = "1" 'this is how you enter a value into a variable
MsgBox "strlocalVariable = " + strlocalVariable 'print the variable contents
End Sub