Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 12 years and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I have a script that I grabbed from the Technet Microsoft website. It works fine but I would like to know how to change the echo command a command that will allow it to get the information, then send it to notepad.exe and then print the information in the notepad.
I have a script that I grabbed from the Technet Microsoft website. It works fine but I would like to know how to change the echo command a command that will allow it to get the information, then send it to notepad.exe and then print the information in the notepad.
You can use the FileSystemObject (FSO) to manipulate files. Do some research on .OpenTextFile. Your logic would be more like get computer, create (or modify) text file, use WSHShell.Run to open the txt file "notepad C:mytext.txt"rasimmer2012-03-19 13:47:24
Maybe JVierra can show me a way to make it a one-liner. Powershell allows you to pipe information to the next command. Out-File doesn't return anything, so that is why I had to make it 2 lines, but another example.
One more question can you guys assist me on this script. I can get all of the information to display via Wscript.Echo.
But what I really want it to do is display the information all together without pressing Ok on every msgbox. Here is the script.
It worked fine the information did display within the command prompt windows. But lets' say that I wanted that information to display in notepad.exe....is that possible.
This topic is 12 years and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.