Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

script for network servers?

kabucek
Advisor

script for network servers?

I want to write a script that will find all items in folder X:\userbackup – on SERVERBACKUP and all items in main\FileServer\marketing and compare those 2 folders for any missing stuff and if there are some changes - I want from that script to send a MESSAGE ERROR to me.
How to start that script? Can I write script that will automatically connect to the drive on the network? Like for example:
1) it will connect to drive X:\userbackup and record in .txt file what items are in that folder
2) it will connect to \main\filerserver\marketing and record in .txt file what items are in that folder
3) compare those 2 txt file and if file from X:\userbackup is missing something or if txt from …\fileserver has something that txt from …user backup does not have then send error message