MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
@ECHO OFF SETLOCAL EnableDelayedExpansion SET LogFile=%~n0.log SET TmpFolder=%~dp0%~n0_TMP IF EXIST "%TmpFolder%" RD /s /q "%TmpFolder%" IF NOT EXIST "%TmpFolder%" MD "%TmpFolder%" IF EXIST "%LogFile%" DEL "%LogFile%" FOR /F "delims=" %%T in ('TIME /t') DO SET TheTime=%%T FOR /F "delims=\ " %%A IN ('NET VIEW ^| FINDSTR -i "\\" ^| FINDSTR -i -v "%computername%"') DO ( SET BatchFile=%TmpFolder%\%%A.bat ECHO %%A ECHO psexec \\%%A cmd /c time %TheTime%>>"%LogFile%" ECHO psexec \\%%A cmd /c time %TheTime%>>"!BatchFile!" ECHO EXIT>>"!BatchFile!" START "SET NETWORK TIME" /min "!BatchFile!" PING -n 1 -w 10 10.0.0.0 >NUL ) EXIT
|Batch script to create folder and use it as a variable||6||49|
|Get a list of users on network who have folders open||25||59|
|What does "Installable" mean within Diskpart Detail Volume properties?||12||209|
|Triggering different executables from batch file based on the time of day||4||36|