vbscript11
IS-IT--Management
Hi all,
I have the below code that will popup a input box and will paste the entered data in the Input box to a file.
But along with this I also want the Date & Time to be displayed (next to the entered data in the file).The code must pick up the date and time from the local machine.
Option Explicit
Const ForAppending = 8
Dim Input,filesys,filetxt,filetxt1,path1,path2
path1="D:\s\"
path2="abcd.txt"
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt1 = filesys.OpenTextFile(path1 & path2,ForAppending,True)
Input = InputBox("Enter your name")
filetxt1.WriteLine( Input )
Please help.
I have the below code that will popup a input box and will paste the entered data in the Input box to a file.
But along with this I also want the Date & Time to be displayed (next to the entered data in the file).The code must pick up the date and time from the local machine.
Option Explicit
Const ForAppending = 8
Dim Input,filesys,filetxt,filetxt1,path1,path2
path1="D:\s\"
path2="abcd.txt"
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt1 = filesys.OpenTextFile(path1 & path2,ForAppending,True)
Input = InputBox("Enter your name")
filetxt1.WriteLine( Input )
Please help.