Windows XP Scripting ...HELP...

Ian

Administrator
Joined
Feb 23, 2002
Messages
19,873
Reaction score
1,499
Not unless you have security settings set to Zero, I don't think so.
 

muckshifter

I'm not weird, I'm a limited edition.
Moderator
Joined
Mar 5, 2002
Messages
25,739
Reaction score
1,204
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
 
Joined
Oct 6, 2005
Messages
4
Reaction score
0
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...
 

muckshifter

I'm not weird, I'm a limited edition.
Moderator
Joined
Mar 5, 2002
Messages
25,739
Reaction score
1,204
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. :)
 
Joined
Oct 6, 2005
Messages
4
Reaction score
0
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.
 
Joined
Oct 4, 2005
Messages
73
Reaction score
2
' 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top