Console Apps

I am trying to develop a console app that will launch the Dos Based FTP program.

I know I can easily implment this using Windows Scripting Host, but I want to develop it using a console app.

Any help would be great. I thought the following would work

using System;

using IWshRuntimeLibrary;

namespace Ftp

{

/// <summary>

/// Summary description for Class1.

/// </summary>

class Class1

{

/// <summary>

/// The main entry point for the application.

/// </summary>

[STAThread]

static void Main(string[] args)

{

WshShell shell = new WshShell();

shell.Run("ftp -s:Idx.scr");

}

}

}




Answer this question

Console Apps