Share this post

Link to post

Share on other sites

Hi, @Bettylou, welcome to the forum. A lot of this you can get through AutoIt directly, or through WMI. First, I would suggest looking at the @ macros in the Help File. Macros such as @OSArch, @OSLang, etc. will help you immensely. Also search the forum for Script-o-Matic, which will help you use WMI to find things such as the state of the firewall, what applications are installed, etc.

Share this post

Link to post

Share on other sites

@Trong we try to follow the "Teach a man to fish" motto on this forum, especially for new users; usually more helpful to point someone to the solution, allowing them to learn along the way, rather than blasting someone with 700 lines of convoluted code on their third day..

Share this post

Link to post

Share on other sites

Okay my next feeble effort. It is not exactly what I want but I'm slowly getting there. So far I haven't been able to figure out how to get it to print out the Arch without showing "bit" and how to get it to print out "Service Pack" instead of 1.

Share this post

Link to post

Share on other sites

Eventually, when I learn how, I intend to create a temp dir for the data and send the output to notepad on the desktop. I'm only using msgbox now to check that my script works because so far msgbox is all I've learned to do.

Share this post

Link to post

Share on other sites

Generally you can create your functions just about anywhere, so long as you don't create one function inside another, and any variables that are shared have been declared previously, along with all #Include files. The typical arrangement though, is to have your main code come first after all #Includes and Global variables have been declared, then your functions last, one after the other. I also find it helps to order your functions by name alphabetically.

You can of course call one function from within another.

When you post code, it helps all involved if you use the code button in the Post or Reply Editor (9th from left - angle brackets).

I have done some minor corrections to your code, but it probably needs more, especially where you have declared Local for something that is then part of a Global declaration. They are two very different scopes, but not having your complete code I am not about to suppose anything, so just bear what I said in mind, and perhaps do some research on them.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key?Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox(be advised many downloads are not working due to ISP screwup with my storage)

Share this post

Link to post

Share on other sites

Thank you for that. I "borrowed" the (Local$sPathLogFile) script from post #5. Obviously, I will be better off if I create my own directory. At the moment my knowledge doesn't extend that far. Um---at the moment that is my complete code. I'm sorry, I didn't think to enclose it in code tags.