Write a Command Line App and Use Variables


  • Hello,

    I am using VS 2012 and I am trying to write a program that only runs from a Command Prompt. On the project properties page, I clicked the Debug tab\Command Line Argument, and I entered in my values. What I want to do is open a file that the path varies according to the user.  Inside the file, I need to replace 2 areas of text. Both of these areas are surrounded by quotes and I need to call that in the command because there are multiples areas in the file with the same text, but only one area has it in quotes.  What I am trying to accomplish is something like this:

    C:\>replace.exe variable1(path) variable2("old text") variable3("new text")

    Any help would be appreciated.

    Wednesday, February 10, 2016 6:16 PM

All replies

  • Hi jsetaro,

    This forum is discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

    Based on your description, your problem is related to program development. Could you please tell me which project type and development language are you using? It can help me find out a appropriate forum for a better help.

    Best Regards,

    Monday, February 15, 2016 3:16 AM