ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   DOS..BAT file problem from VB (https://www.excelbanter.com/excel-discussion-misc-queries/255675-dos-bat-file-problem-vbulletin.html)

TOMD

DOS..BAT file problem from VB
 
I have a program that prints to the screen. From a DOS window, or with a BAT
file I can redirect the data to a file via the following command "Path Arg1
Arg2 Filename. But, when I execute the BAT file from a VB program, using
either Shell or FollowHyperlink, the output file is created or recreated but
remains empty. Any help will be greatly appreciated.

TomD

Daryl S

DOS..BAT file problem from VB
 
Tom -

This forum is for Excel questions, not DOS, so you might get a better answer
in another forum.

That said, try the pipe character (|) for redirection instead of the
greater-than sign (). Sometimes that works better.

--
Daryl S


"TomD" wrote:

I have a program that prints to the screen. From a DOS window, or with a BAT
file I can redirect the data to a file via the following command "Path Arg1
Arg2 Filename. But, when I execute the BAT file from a VB program, using
either Shell or FollowHyperlink, the output file is created or recreated but
remains empty. Any help will be greatly appreciated.

TomD



All times are GMT +1. The time now is 08:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com