Thursday, January 24, 2008

Scheduling to run a page automatically

Const HOST = "url of that .net page"

Const FORMAT = "Raja"

' Create the HTTP object
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")


xmlhttp.open "GET", HOST & "/GetYourTime?format=" & FORMAT, false

' Send the request synchronously

xmlhttp.send()
MsgBox xmlhttp.responseText

Friday, January 11, 2008

call an executable from a .NET code

using System.Diagnostics;
Process.Start("notepad.exe");

(or)

using System.Diagnostics;
ProcessStartInfo proc = new ProcessStartInfo();
proc.FileName="notepad.exe";
proc.Arguments = @"D:\dataset_tables.txt"; //It's going to open that txt file
Process.Start(proc);