# Parsing commandline parameters to a win32ole instance of an

**URL:** <https://www.ruby-forum.com/t/parsing-commandline-parameters-to-a-win32ole-instance-of-an/65499>\
**Category:** Ruby\
**Created:** [August 18, 2006, 7:33pm UTC](https://www.ruby-forum.com/t/parsing-commandline-parameters-to-a-win32ole-instance-of-an/65499 "2006-08-18T19:33:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 18, 2006, 7:33pm UTC](https://www.ruby-forum.com/t/parsing-commandline-parameters-to-a-win32ole-instance-of-an/65499/1 "2006-08-18T19:33:03Z")

</div>

Hi everybody,

I’m a newby to ruby and I’m trying to whrite a script that uses the  
comobject of business objects. The normal executable accepts a couple  
of commandline parameters.

Does anybody kwon if it’s possible to parse the parameters when you  
create an instance with a ruby script?

For example

busobj.exe -userid simon

but how do you do this in a script like this

require “RubyCOM”

BO = WIN32OLE.new(‘Businessobjects.Application’)  
BO.visible = true  
etc…

Many thanks in advance

Cheers from a newby…
