Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: newbie using rebol to call windows commandline

From: james::mustard::co::nz at: 6-Apr-2002 1:27

Hi Bryan, re: Subject: [REBOL] newbie using rebol to call windows commandline
> I was just wondering if there are any basic examples(not using Rebol > Command, I'm using Rebol View) of calling cmd.exe from rebol, and
> the process?
you can always use the browse trick: browse "C:/winnt/system32/cmd.exe" Depending on your security settings this will either auto-run (horribly insecure) or prompt you whether to open, save, or cancel. This same system can be used to run *.vbs scripts via the 'windows scripting host' using Explorer as a pass-thru launcher (Explorer stays hidden). /----------Example hello world vbs script----------------- Set WSHShell = WScript.CreateObject("WScript.Shell") "CMD.EXE" WScript.Sleep 10 WshShell.SendKeys "Hello World" ... /---------------------------------------------------------- Regards, James