Jump to content

Save Prob


Brennan

Recommended Posts

I made a batch file for a flash drive that will take a bunch of info from a windows sys and dump it on the flash drive but I have one small problem it doesn't save so can someone tell me how to tweak this so it will work.

@echo off

cls



:: Create Folder

mkdir .systems%date:~4,2%_%date:~7,2%



:: Shortcuts

set F=.systems%date:~4,2%_%date:~7,2%__%

set N=%Computername%

set save=%F%%N%.log

set cd=%F%%N%



cd %CD%



echo ################################# >> %save%

echo ################ ################ >> %save%

echo ###############   ############### >> %save%

echo ##############     ############## >> %save%

echo #############       ############# >> %save%

echo ############         ############ >> %save%

echo ###########           ########### >> %save%

echo ##########   SYSINFO   ########## >> %save%

echo ###########           ########### >> %save%

echo ############         ############ >> %save%

echo #############       ############# >> %save%

echo ##############     ############## >> %save%

echo ###############   ############### >> %save%

echo ################ ################ >> %save%

echo ################################# >> %save%

echo. >> %save%

echo. >> %save%



:: Credit

echo sysinfo 1.0 Created by:REDWIND >> %save%

echo. >> %save%

echo. >> %save%



::Quick info

echo Computer Name=%computername% >> %save%

echo System Drive=%systemdrive% >> %save%

echo. >> %save%

echo. >> %save%



:: Firewall Info

echo ############################ >> %save%

echo ### Firewall information ### >> %save%

echo ############################ >> %save%

netsh firewall show config >> %save%



:: IP info

echo ###################### >> %save%

echo ### IP Information ### >> %save%

echo ###################### >> %save%

ipconfig /all >> %save%

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...