Search found 1 match

by melinadavid
06 Jun 2017, 01:28
Forum: Scripting and Automation
Topic: print output of two commands in two columns in excel file
Replies: 1
Views: 1913

print output of two commands in two columns in excel file

Hi,
I am writing a windows script to run 2 commands. Now the outputs goes in two rows, but I want the output of each command goes in different columns in excel. This is My script:

For %%F in (*.txt) do (
Command_1 %%F >> output.xls & command_2 %%F >> output.xls
)

Now my Output.xls is like:
AAA ...