vpn25
02-04-2004, 08:44 AM
Hello
I try to run a dos-command from a VB .net command-line application using the Shell-command. The command I want to issue uses parameters and I want to redirect its output to a file. According to VB help, I have to include a path like C:\program files\... in triple quotes (""")
The command I want to run is from the "Subsystem Device Driver" tool from IBM, which is used to query the fibre card adapters and the links to the SAN.
The following command I want to issue:
c:\program files\ibm\subsystem device driver\datapath.exe query device > output.txt
"query device" is the parameter of the command
I tried various versions, e. g.
"""c:\program files\ibm\subsystem device driver\datapath.exe"" query device " & """filename.txt"""
In this example, the output to the file is not working, with other quota versions, the parameter of the datapath command does not get recognized.
Anybody got an idea ? Thanks in advance
I try to run a dos-command from a VB .net command-line application using the Shell-command. The command I want to issue uses parameters and I want to redirect its output to a file. According to VB help, I have to include a path like C:\program files\... in triple quotes (""")
The command I want to run is from the "Subsystem Device Driver" tool from IBM, which is used to query the fibre card adapters and the links to the SAN.
The following command I want to issue:
c:\program files\ibm\subsystem device driver\datapath.exe query device > output.txt
"query device" is the parameter of the command
I tried various versions, e. g.
"""c:\program files\ibm\subsystem device driver\datapath.exe"" query device " & """filename.txt"""
In this example, the output to the file is not working, with other quota versions, the parameter of the datapath command does not get recognized.
Anybody got an idea ? Thanks in advance