Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-18-2004, 07:46 PM
jmm jmm is online now
Registered User
 
Join Date: 07-29-2004
Posts: 10
How to run DOS commands in Run Script

I have written a Run Script step (in VBScript) to emulate our existing DOS batch file based build system. I assumed that since the DOSCMD macro shows up via the "Insert Macro" button, that I could use it to execute DOS commands within my VBScript code. But when I try this:

%DOSCMD% "echo hello"

I get:

Error at Line 327, Column 4 (Expected statement)
Code: C:\WINDOWS\system32\cmd.exe /C "echo hello"

Do I have to use a "Run Program" step to execute DOS commands? If so, how do I do that programatically within my VBScript?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:39 PM.


Copyright © 1999-2023 Kinook Software, Inc.