This code below is an example of printing the answer to a question asked to the user in a .txt file, it will help those interested in .vbs scripts to understand the working logic
. Paste the code into a notepad and click File – Save As… Save and run as ..
It will create a txt file named a.txt next to your script.
CreateObject(“Scripting.FileSystemObject”).CreateTextFile(“a.txt” , True).WriteLine InputBox (“Please enter your Username:”,”Input”,”Username”)
Velociraptor