Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: VBS 2 REBOL
Pages: [1] Print
Author Topic: VBS 2 REBOL  (Read 245 times)
kelsey
Newbie
*
Offline Offline

Posts: 1


View Profile
VBS 2 REBOL
« on: January 15, 2007, 08:13:19 AM »

hey all im learning rebol its strange after knowing VBS..

could someone show me how to do these in rebol

WScript.ScriptFullName ;Gets the name of the currently running script

"." ; this means the current directory if im looking for files

thx
Logged
PeterWood
Newbie
*
Offline Offline

Posts: 34


View Profile
Re: VBS 2 REBOL
« Reply #1 on: January 16, 2007, 07:23:58 AM »

You should be able to get the name of the current script with :

Code:
system/options/script

You can access data about a script via the system/script object. Carl's short article at http://www.rebol.com/docs/quick-start4.html explains how to explore the system object.

Rebol automatically looks in the current directory so this would read a file in the current directory:
Code:
read %myfile

Peter
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: VBS 2 REBOL
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 09:39:42 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4145 Members
Latest Member: Domiadito

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc