Click here to Skip to main content
15,913,773 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Copy Files (RS-232) Pin
Ted Ferenc15-Sep-04 0:00
Ted Ferenc15-Sep-04 0:00 
GeneralRe: Copy Files (RS-232) Pin
Mekong River15-Sep-04 5:04
Mekong River15-Sep-04 5:04 
GeneralRe: Copy Files (RS-232) Pin
Grahamfff17-Sep-04 9:23
Grahamfff17-Sep-04 9:23 
GeneralRe: Copy Files (RS-232) Pin
Roger Wright18-Sep-04 20:12
professionalRoger Wright18-Sep-04 20:12 
GeneralRe: Copy Files (RS-232) Pin
sweep12319-Sep-04 22:10
sweep12319-Sep-04 22:10 
GeneralStart Process as Admin Pin
tommy_tanaka14-Sep-04 8:57
tommy_tanaka14-Sep-04 8:57 
GeneralRe: Start Process as Admin Pin
Mekong River1-Mar-06 20:28
Mekong River1-Mar-06 20:28 
GeneralRedirecting DOS commandline errors to a vbs variable Pin
web_app_developer14-Sep-04 7:13
web_app_developer14-Sep-04 7:13 
Hi,

I have the following line in a vbs script. I want to capture whatever would be output on the dos command line into a variable that I can print can print from the vbs file onto the command line, using the wscript.echo command. (I hope this makes sense.)

Here is the line of code:
<br />
objShell.Run("cmd /c vcp -noprompt -pw TESTING \tmp\INETPUB_DEV.ZIP admin@BOBQA1:\downloads\INETPUB_DEV.ZIP")<br />


Any help is greatly appreciated!

PS.
I was using the following, but it didn't work, and anyway, I would like to have a more specific error message:

<br />
objShell.Run("cmd /c vcp -noprompt -pw TESTING \tmp\INETPUB_DEV.ZIP admin@BOBQA1:\downloads\INETPUB_DEV.ZIP")<br />
objShell.Run("cmd /c if errorlevel 1 strErrorLevel = 1")<br />
If strErrorLevel = "1" Then Call ProcessError(vcp)<br />
<br />
Sub ProcessError(command)<br />
  WScript.Echo("PROCESS ERROR at " & command & " command.")<br />
End Sub<br />

GeneralRe: Redirecting DOS commandline errors to a vbs variable Pin
web_app_developer15-Sep-04 7:28
web_app_developer15-Sep-04 7:28 
GeneralProblem with interactive Desktop and Network Service Pin
tommy_tanaka14-Sep-04 0:27
tommy_tanaka14-Sep-04 0:27 
GeneralDifference network system at home and office Pin
Mekong River13-Sep-04 21:49
Mekong River13-Sep-04 21:49 
GeneralRe: Difference network system at home and office Pin
Mike Dimmick14-Sep-04 2:55
Mike Dimmick14-Sep-04 2:55 
GeneralRe: Difference network system at home and office Pin
Mekong River14-Sep-04 4:54
Mekong River14-Sep-04 4:54 
GeneralWindows 2000/XP always restart after installation, at the logon screen Pin
Mekong River13-Sep-04 21:44
Mekong River13-Sep-04 21:44 
GeneralAutomatice shut down power Pin
Mekong River13-Sep-04 6:18
Mekong River13-Sep-04 6:18 
GeneralRe: Automatice shut down power Pin
Steven Campbell13-Sep-04 6:56
Steven Campbell13-Sep-04 6:56 
GeneralRe: Automatice shut down power Pin
Mekong River1-Mar-06 20:30
Mekong River1-Mar-06 20:30 
GeneralMMC, console Pin
Mekong River13-Sep-04 6:05
Mekong River13-Sep-04 6:05 
GeneralMissing computer from My Network Place Pin
Mekong River13-Sep-04 6:03
Mekong River13-Sep-04 6:03 
GeneralIMAP in Outlook Pin
Mazdak13-Sep-04 1:47
Mazdak13-Sep-04 1:47 
GeneralRe: IMAP in Outlook Pin
Mike Dimmick13-Sep-04 2:54
Mike Dimmick13-Sep-04 2:54 
GeneralRe: IMAP in Outlook Pin
Mazdak13-Sep-04 5:22
Mazdak13-Sep-04 5:22 
GeneralRe: IMAP in Outlook Pin
Mekong River13-Sep-04 6:12
Mekong River13-Sep-04 6:12 
QuestionAdd/Remove Programs log? Pin
Vadim Tabakman12-Sep-04 19:47
Vadim Tabakman12-Sep-04 19:47 
AnswerRe: Add/Remove Programs log? Pin
Mike Dimmick13-Sep-04 4:27
Mike Dimmick13-Sep-04 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.