Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Login script
joey se
2/20/2006 2:35:00 AM
hello!
on windows 2003. id like to use ruby to process my login script.
how do you read all mapped drives, map a drive or disconnect a mapped
drive with ruby?
can someone point me to any documentation with regards to making calls
similar to the above?
thank you so much!
joey
--
Posted via
http://www.ruby-...
.
1 Answer
james_b
2/20/2006 3:28:00 AM
0
joey se wrote:
> hello!
>
> on windows 2003. id like to use ruby to process my login script.
>
> how do you read all mapped drives, map a drive or disconnect a mapped
> drive with ruby?
>
I have a script to map some drives, with stuff such as:
require 'win32ole'
net = WIN32OLE.new('WScript.Network')
user_name = 'some_user_name'
password = 'top-secret-password'
net.MapNetworkDrive( 'X:', '\\james3480\$C', nil, user_name, password )
Poke around MSDN for WScript.Network examples using JScript or VBScript.
That's how I worked out what I needed.
--
James Britt
http://www.ru...
- Ruby Help & Documentation
http://www.artima.c...
- The Journal By & For Rubyists
http://www.30seco...
- Building Better Tools
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Login script
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password