Can’t Delete File/Folder – Path Too Long

I ran into a scenario where I had used Robocopy to /COPYALL out to an external USB drive for a backup of a rather large directory. One of the source directories had about 40 hidden subfolders stacked within itself which robocopy copied out to the external drive. All of these folders file paths on my external drive now surpassed the limit of 255 characters which essentially renders them useless in the GUI. These duplicate hidden subfolders were something that I wanted to:

– delete from the destination media

– exclude from any future robocopy copyouts

The quick fix I found was to drill down into the USB drive about half way through the nested subfolders, right-click and share one of the duplicates out, giving permission to ‘Everyone’. From my host PC, I was able to go to  \\SERVER\*newshare* and delete all subfolders/files from that point as the relative path was then lower than 255 characters. Go back into the server, remove the share, and move it higher up in the tree if necessary to work yourself out of the 255 character limit.

I then added the exclusion (in italics below) to my robocopy script to avoid copying that directory again and recreating the issue:

robocopy “C:\Graphics” “F:\Graphics” /NP /E /R:3 /W:5 /ZB /XD “C:\Graphics\Videos\Edits” /LOG:”C:\Backup_log.txt”

Install Public SSL Certificate on Fortigate

Installing a GoDaddy certificate on your Fortigate is fairly straight forward. Perform the following steps:

1) Log into the Forgitate. On the main dashboard, under ‘Features’, be sure to enable the ‘Certificates’  option. It will then display in the left sidebar.

2) Go to System > Certificates > Local Certificates.

3) Click Generate. Fill in the fields:

Certificate Name: vpn.domain.com
Subject Information
ID Type: Domain Name
Domain Name: vpn.domain.com

Key Type: RSA

Key Size: 2048

Enrollment Method: File Based

4) Click OK.

5) Highlight the newly created entry in Local Certificates and download it. Open with notepad to grab the CSR. Use this CSR to request your certificate with GoDaddy.

6) Once GoDaddy has issued the certificates, download the IIS package from GoDaddy. Return to the Local Certificates section of the Fortigate, and select ‘Import’, selecting the newly downloaded GoDaddy certificate.

FortiGate – Versions Cheat Sheet

​FortiOS 5 Version Cheat Sheet

​Numeric Version​ ​Build Number ​Release date ​Notes
​5.0GA ​​128 ​2012/11/01
​5.0.1 ​147 ​2012/12/21
​5.0.2 ​179 ​2013/03/18
​5.0.3 ​208 ​2013/06/24
​5.0.4 ​228 ​2013/08/09
​5.0.5 ​252 ​2013/10/31
​5.0.6 ​271 ​2014/01/24
​5.0.7 3483-4459 ​2014/04/09 ​Resolves Heartbleed Bug – DO NOT USE EARLIER VERSIONS
​5.0.8 ​291 ​2014/07/29
​5.0.9 ​292 ​2014/08/01
​5.2.0 ​589 ​2014/06/13 ​Upgrade from 5.0.6 or later only
​5.2.1 ​618 ​2014/09/15 ​Upgrade from 5.0.6 or later in 5.0 code, or 5.2.0 in 5.2 code
​5.2.3 ​670 ​2015/03/15 ​Upgrade from 5.0.10 or later only in 5.0 code

Upgrade from 5.2.1 or later only in 5.2 code

​5.2.4 ​688 ​2015/06/22 ​Upgrade from 5.0.10 or later only in 5.0 code

Upgrade from 5.2.1 or later only in 5.2 code