Send data from Windows form to Console app

Alex_W

Member
Joined
Jan 5, 2009
Messages
22
Programming Experience
Beginner
Hi all,

I'm making program that will copy one file and over-write another to purge data.

I have a windows form interface where the files can be selected and want a console application to run this process so it can be put into the PC's startup folder to run on each startup.

The problem is I need to send the file location data to the console app when I choose a save button on the form. Both are part of the same project and referenced but I can't seem to reference any variable from the win form to console app.

Also will I see the Console app as a seperate icon in the program files so I can put it on the PC startup?
 
VB.NET:
Process.Start("console app path", "arguments")
In console read the arguments from Environment.GetCommandLineArgs.

Or if you meant a static path, save it somewhere you can read it later, like in a file or to registry.
 
Back
Top