Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Batch File

$
0
0

Hello Everybody, 

I tried running a program using a batch file.

When I type the command arguement the line: "generator.exe 8 100 1 0.9 > run1.txt", I get a text file named "run1.txt" which contains all information I need. 

However, when I open a batch file and type: 

"start D:\CPROG\traffic_generator\Debug\traffic_generator.exe  generator.exe 8 100 1 0.9 > run1.txt", 

when I double-click the batch file, the program runs correctly, but at the end of the running a get an EMPTY run1.txt file. 

I was trying to figure out what's the problem, and didn't figure it out.

I appreciate your help! 


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>