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
Related Q&A from John Robbins
What is a JAD session? This term is referred to often in job postings and seems like some kind of brainstorm you carry out with a client to define IT... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.