School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,416 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,559 people online right now. Registration is fast and FREE... Join Now!




Running Commands XP from cmd line with Ruby to kick off VNP

 

Running Commands XP from cmd line with Ruby to kick off VNP

Don Fox

12 Mar, 2009 - 01:53 PM
Post #1

New D.I.C Head
*

Joined: 12 Mar, 2009
Posts: 1

I am reading a command from a file into a Ruby program. The command will, when pasted onto the DOS command line kick off VPN. How to get the cmd to execute?

#
# ReadCmd.rb
#
require 'win32ole'
#
# These two commands read
#
while cmd = ARGF.gets
print cmd
end

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 11:31PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month