C:
CD C:\Directory\PROGRAM.exe\Subdirectory\
PROGRAM Input_FileName
Will do it fine - but the program you pass it to has to look for the parameters. If it doesn't - nothing will happen.
How you look for them in your code depends on what kind of app you write: for a Console application, the parameters are passed in via the
main
method as the array of strings
arv
. For a WinForms app, they are accessed via the Environment class:
string[] args = Environment.GetCommandLineArgs();