Get System and hardware info from remote servers
systeminfo /s [servername]
psinfo -s -d [servername]
Count specific files in a folder
for %%x in ("C:\DATA\*.XML") do @(set /a count+=1 >nul)
echo %COUNT% files found.
Pause execution of the batch for 10 seconds
Use one of the following methods:
choice /T 10 /D N >nul
timeout /t 10 >nul
Network share already mapped error message
Sometime you may get an error message while trying to map a network folder: "The network folder specified is currently mapped using a different user name and password".
Check if the folder is indeed already mapped:
Delete the mapping and try again:
NET USE \\[servername]\[sharedfolder] /DELETE