Windows XP Scripting ...HELP...

Not unless you have security settings set to Zero, I don't think so.
 
Ian Cunningham said:
Not unless you have security settings set to Zero, I don't think so.
I think you missread the question Ian.

Yes you can use VB script to run an .EXE file ... that's why we turn it off. :D
 
OK... i Know all that... but for academic reasons only... can you tell me (if you know) how i can do that..?? i need the command syntax

:)

thank you again...
 
kerveros said:
OK... i Know all that... but for academic reasons only... can you tell me (if you know) how i can do that..?? i need the command syntax

:)

thank you again...
Sorry not me, the last time I did any 'programming' was in 1989 and I was using DBase. :)
 
so this is my problem too... my last programming expiriance was at 80's (COBOL - Fortran - Pascal etc) and now i don't know from where to start over.... life SUCKS.
 
' This fragment launches Notepad with the current executed script.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("%windir%\notepad" & WScript.ScriptFullName)


'The following VBScript code does the same thing, except it
' specifies the window type, waits for Notepad to be shut down by the user,
' and saves the error code returned from Notepad when it is shut down.
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("notepad " & WScript.ScriptFullName, 1, true)
Hi there, this might help.

' The following code opens a cmd window,
' changes to the path to C:\ , and executes the DIR command.
Dim oShell
Set oShell = WScript.CreateObject ("WScript.shell")
oShell.run "cmd /K CD C:\ & Dir"
Set oShell = Nothing

Wolfgang
Beirut/Lebanon
 
Back
Top