RoboCopy – Exclude existing files.cmd

robocopy.exe c:\Sourcepath c:\Destpath /E /XC /XN /XO

:: /E makes Robocopy recursively copy subdirectories, including empty ones.
:: /XC excludes existing files with the same timestamp, but different file sizes. Robocopy normally overwrites those.
:: /XN excludes existing files newer than the copy in the source directory. Robocopy normally overwrites those.
:: /XO excludes existing files older than the copy in the source directory. Robocopy normally overwrites those.
:: With the Changed, Older, and Newer classes excluded, Robocopy will exclude files existing in the destination directory.

 

Advertisements

SQL Server: Date and Time Data Types (Size and Ranges)

hnrsj

Thank you for this reference, whomever made this chart!

Tip: DateTime2(3) has the same number of digits as DateTime but uses 7 bytes of storage instead of 8 bytes (SQLHINTS- DateTime Vs DateTime2).

How to Send an Email from PowerShell

via How to Send Email From the Command Line in Windows (Without Extra Software)

Thanks! Handy little script!

$EmailFrom = "yourgmailadress@gmail.com"
$EmailTo = "destination@somedomain.com"
$Subject = "The subject of your email"
$Body = "What do you want your email to say"
$SMTPServer = "smtp.gmail.com"
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("user", "password");
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)

Windows Emoji Entry not working? [Fix]

Make sure “ctfmon.exe” in the C:\Windows\System32 folder is running.

Also, as far as I know, the Windows task “MsCtfMonitor” is responsible for making sure ctfmon is running. You can check if that task is running at startup by using the “AutoRuns” Sysinternals program from Microsoft.

Also, in case you didn’t know: Press the Windows key + dot to bring up the emoji list.

Windows 10 Gets a Cloud Reset Feature, Here’s How it Works

via Windows 10 Gets a Cloud Reset Feature, Here’s How it Works

Um.. no. That’s too much control out of the user’s hands.

“With Cloud Recovery, Microsoft wants to make the process of recovering a corrupted installation of Windows 10 much easier by downloading a fresh copy of Windows files directly from Microsoft, without the need of Windows media.”

It would be a nice OPTIONAL feature to refresh your computer via streaming download, but it should be only the system files, and no personal files.. such as the Documents folder.

Thoughts?

ReFS 3.4 is not ready for Production. Really! Don’t use it.. yet.

I love the new features that ReFS (version 3.4 as of now) brings. Each feature sounds wonderful. Self-healing, large volumes, checksums, etc.. it all sounds good.. on paper.

But when used, they all fall flat on how easy it is to break ReFS. (seriously!)

A reboot at the wrong time can totally fry the ReFS volume. Simply gone. Poof. Little chance of recovery. I’ve seen it happen multiple times on multiple servers. No known way to repair the now-RAW partition. There is a recovery tool ReFSUtil.exe built-in on windows, but I haven’t had any success recovering anything useful with it.

Just thinking.. why doesn’t any file system (that I know about) have at least 3 master file tables? One at the beginning, middle, and end of the drive? Think of the speed increase when searching for files, and the added resiliency! The drive heads would never have to seek more than 1/3 of the platter to read from the MFT.

Sigh. I should write my own FS.. just give me a few decades lol.