Batch file I made JUST for Majorgeeks XP users

Discussion in 'Software' started by Mada_Milty, Jul 6, 2006.

  1. Mada_Milty

    Mada_Milty MajorGeek

    Heh, found this SWEET utility that XP has. If you run 'systeminfo' from the command line, you get a nice amount of technical information on your computer. I've created a batch file that dumps this to a text file. This might be handy when a less literate user needs to post system info. I've attached it for everyone. Note: only fools will run batch files without virus scanning them first. While I assure you that this file is safe, I don't expect you to trust me. Virus scan before using, or if you like, right-click it and select edit to see the code. Cheers!
     

    Attached Files:

  2. Mada_Milty

    Mada_Milty MajorGeek

    btw, the text file's default location is c:\system.txt
     
  3. krit86lr

    krit86lr Corporal

    Cool beans Mada_Milty. Thanks.
     
  4. Mada_Milty

    Mada_Milty MajorGeek

    Hey, no problem! I didn't expect you to really need something like this though. Glad to help!
     
  5. krit86lr

    krit86lr Corporal

    Well I haven't needed it yet, but I'm sure that I will. It will be easier when requesting more info from people who are asking for help. ;)
     
  6. Mada_Milty

    Mada_Milty MajorGeek


    Ahhh, yes...duh, Milty...that's exactly what I had intended it for!
     
  7. bigbazza

    bigbazza R.I.P. 14/12/2011 - Good Onya Geek

    Thanks, Mada_Milty. I have downloaded it and will try it when I log off. Bazza

    ===

     
  8. theefool

    theefool Geekified

    Slight mod to your .bat file.

    The first line should be:

    @echo off

    Get rid of the = sign. :)

    Works in Vista btw.

    Another item would have one run notepad to open said .txt file. So, one does not need to hunt down said file.

    To the end of the script.

    notepad c:\system.txt
     
    Last edited: Jul 6, 2006
  9. Hipster Doofus

    Hipster Doofus MajorGeek

    Can't seem to get it to work with Home edition.
     
  10. theefool

    theefool Geekified

    You are quite correct. Via a G search, I see that systeminfo is only for XP pro. NOT HOME.
     
  11. matt.chugg

    matt.chugg MajorGeek

    You might want to use systeminfo >> %SYSTEMDRIVE%\sysinfo.txt

    Just on the offchance there is no c:

    Matt
     
  12. Mada_Milty

    Mada_Milty MajorGeek

    This is great. I feel like I've started an open source project. Thanks for the suggestions everyone. Some very good ones here! I was just googling to see if you can run systeminfo on XP home (if you were to copy the exe), and I found this KB that has all the switches for this util. Turns out, you can run it for a remote machine as well.
     
  13. matt.chugg

    matt.chugg MajorGeek

    Is it even necesary to delete the file ?

    Won't it just overwrite it if it exists ?
     
  14. matt.chugg

    matt.chugg MajorGeek

    Actually ignore that lol, it will just append to the existing file.

    Matt
     
  15. matt.chugg

    matt.chugg MajorGeek

    Sorry, I got a bit carried away!

    Code:
    @echo off
    
    if exist %SYSTEMDRIVE%\sysinfo.txt (del %SYSTEMDRIVE%\sysinfo.txt)
    
    if exist %SYSTEMDRIVE%\sysinfo.txt (
    	echo.
    	echo File Couldn't be deleted
    	pause
    	goto end:
    )
    
    echo System Info by Mada_Milty >> %SYSTEMDRIVE%\sysinfo.txt
    echo Log created %DATE% %TIME% >> %SYSTEMDRIVE%\sysinfo.txt 
    echo. >> %SYSTEMDRIVE%\sysinfo.txt
    
    Echo. 
    Echo Listing System Information
    systeminfo >> %SYSTEMDRIVE%\sysinfo.txt
    
    
    Echo. 
    Echo Listing Environment Variables
    
    Echo. >> %SYSTEMDRIVE%\sysinfo.txt
    Echo. >> %SYSTEMDRIVE%\sysinfo.txt
    Echo Environment Variables >> %SYSTEMDRIVE%\sysinfo.txt
    Echo --------------------- >> %SYSTEMDRIVE%\sysinfo.txt
    Echo. >> %SYSTEMDRIVE%\sysinfo.txt
    SET >> %SYSTEMDRIVE%\sysinfo.txt
    
    Pause
    
    notepad %SYSTEMDRIVE%\sysinfo.txt
    
    end:
    
     
  16. Mada_Milty

    Mada_Milty MajorGeek

    No need to apologize, that's flippin sweet! Btw, this is hardly "System Info by Mada_Milty" anymore! You don't need to give me credit. :)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds