Shell environments set (dsm_dir, dsm_config, path) ?
I am not a vbs expert, but I can do this with cscript:

testcmd="dsmadmc -id=admin -pa=pw -outfile=test.out " + arg0
set wshshell=wscript.createobject("wscript.shell")
wshshell.run testcmd,0,True


-----Original Message-----
From: Fletcher, Leland D. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 11:44 AM
To: [EMAIL PROTECTED]
Subject: DSMADMC from Visual Basic Shell Function?


I'm attempting to write a VB application to monitor the daily ADSM schedule
and to issue several commands throughout the day. My problem is that when I
use the shell command nothing seems to be working. I do not get any errors
but I do not get any output either. The format of the shell command I'm
using is provided below. I have not set any environment variables and plan
on executing the VB application under Windows 2000.

The following should issue the "q fi".

Private Sub Command1_Click()
    x = Shell("C:\Progra~1\IBM\ADSM\saclient\DSMADMC.EXE -id=admin -pa=x
-outfile=c:\cmdout.txt q fi")
End Sub

The function runs without error but I do not get the -outfile allocated.
Thanks in advance for any input to my problem!

Lee Fletcher
Network Project Integrator
AmerenUE Callaway Plant
[EMAIL PROTECTED]

Reply via email to