Here is VB.NET Code:
'Pasting from the Clipboard
If System.Windows.Forms.Clipboard.GetDataObject.GetDataPresent( _
System.Windows.Forms.DataFormats.Text) Then
txtURL.Text = System.Windows.Forms.Clipboard.GetDataObject.GetData( _
System.Windows.Forms.DataFormats.Text)
End If
'Writing to a File
strBatFile = "war59312"
FileOpen(1, (Application.StartupPath & "\LogonHours.bat"), OpenMode.Output)
PrintLine(1, strBatFile)
FileClose(1)
Cheers,

McoreD