C
carolineb2005
I have compiled this simple program which accept arguments on line
using System;
class HelloWorld
{
public static void Main(string[] args)
{
Console.WriteLine("Hello ", args[0]);
}
}
If I run a batch file HelloWorldRun.batch with
HelloWorld.exe World
It works
but if I use the %1 parameter in the batch
HelloWorld.exe %1
It doesn't seem to work: it just open the dos window.
This is very annoying !
using System;
class HelloWorld
{
public static void Main(string[] args)
{
Console.WriteLine("Hello ", args[0]);
}
}
If I run a batch file HelloWorldRun.batch with
HelloWorld.exe World
It works
but if I use the %1 parameter in the batch
HelloWorld.exe %1
It doesn't seem to work: it just open the dos window.
This is very annoying !