N
N
nadom2014-12-14 13:38:40
Programming
nadom, 2014-12-14 13:38:40

How to open a file in a program using command line arguments?

There was an idea.
The program (C++, environment - VS) writes to a text file, according to the corresponding user command.
Is it possible, using command line arguments, to open this file (in notepad, for example) right at the time of program execution, so that the user can evaluate what is there.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
386DX, 2014-12-14
@nadom

start notepad c:\path\file.txt
or
cd c:\path\
start notepad file.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question