you can just read the args param:
using System;
using System.Collections.Generic
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(args[0])
Console.ReadKey();
}
}
}
create a shortcut to the app and pass in the args e.g.
"C:\Users\xxx\Documents\Vi
this will write 'test' to the console app...
Main Topics
Browse All Topics





by: Snarf0001Posted on 2009-03-07 at 16:27:50ID: 23827339
You don't have to do anything special to it, console apps can use parameters.
Assuming you have something like:
static void Main(string[] args)
{
}
then any arguments you pass in through command line will be available as strings in the args variable.