Q
Problem solve Get help with specific problems with your technologies, process and projects.

How do I pass an external parameter?

How do I pass an external parameter? I am creating a simple front-end for decryption and wish to provide a user with the facility to click on an encrypted file, bring the filename into VB.NET, call another program and pass the file name as its parameter, then save the result with the same file name as used in the passed parameter.
You'll pass the parameter on the command line to the other program. As you do in the command prompt, calling a program such as Word like "winword c:docsexample.doc" will open the document example.doc inside Word.

You can use System.Diagnostics.Process.Start methods to create the process. In a process, you can access the command line parameters by the args String property passed to the Main method.

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

SearchCloudApplications

Close