To move File with Rename
with Current Date and Time:
for /f
"tokens=1-5 delims=/ " %%d in ("%date%") do move
"C:\Users\logan\Desktop\wf1\my.log"
"D:\my_%%e%%f%%g_%Time:~0,2%%Time:~3,2%%Time:~6,2%.log".
Create Event Log source using
CMD:
1. eventcreate /T ERROR /ID 900 /L APPLICATION /SO "Bauer" /D "Log for Bauer Application"
2. eventcreate /ID 192 /L APPLICATION /T INFORMATION /SO "HSEx
tranet555 " /D "Log for HS Extranet Application"
1. eventcreate /T ERROR /ID 900 /L APPLICATION /SO "Bauer" /D "Log for Bauer Application"
2. eventcreate /ID 192 /L APPLICATION /T INFORMATION /SO "HSEx
tranet555 " /D "Log for HS Extranet Application"
Get assembly files from
GAC using PowerShell:
dir
C:\Windows\Assembly -Recurse -Filter "VendorName*.dll" |
foreach { copy $_.FullName C:\Temp }
No comments:
Post a Comment