|i put @ECHO "code" >file.vbs |
but it errors saying the command isnt there and such. how would do i have to do to get this to echo in a bat file to make the vbs.?
all this code is line by line in my bat but only END IF is copied to the VBS.
Sub Run(ByVal sFile)
Set shell = CreateObject("WScript.Shell")
shell.Run Chr(34) & sFile & Chr(34), 1, false
Set shell = Nothing
intAnswer = _
Msgbox("Do you want to delete these files?", _
vbYesNo, "Delete Files")
If intAnswer = vbYes Then
Msgbox "You answered no."