How to create an exe of a vb.net windows application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Malathi
    New Member
    • Mar 2012
    • 31

    How to create an exe of a vb.net windows application

    Hi all,

    I want to create an exe of a vb.net windows application and this application has 2 input paramaters.(Thi s exe will called by a stored procedure). Whats the good way to create an exe? Should I go ahead with console application for passing parameters? Or by simply creating an exe is enough to pass the parameters?

    Thanks,
    Malathi
  • zacksoniar
    New Member
    • Sep 2007
    • 45

    #2
    In Project Properties - > Debug -> Start options -> command line arguments... u can specify ur input parameters. Set Configuration as Release.

    Comment

    • Malathi
      New Member
      • Mar 2012
      • 31

      #3
      Thanks for your reply Zacksoniar! I tried this also.. But I need a solid solution.After creating an exe,I want to call this exe in another windows application.

      Comment

      • zacksoniar
        New Member
        • Sep 2007
        • 45

        #4
        See if it helps... U will have to search more about Process Class

        Code:
        Process a = new Process();
        ProcessStartInfo sInfo = new ProcessStartInfo();
        sInfo.Arguments = "SwitchUser";
        a.StartInfo = sInfo;
        try
        {
          a.Start();
        }

        Comment

        • Malathi
          New Member
          • Mar 2012
          • 31

          #5
          Atlast I found the key! To create an exe - better you create a console application and do your stuff.. Call this exe in another windows or web app by using the above code of zacksoniar..

          Comment

          Working...