Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


PapoNL
2022-05-09T09:45:11Z
Do you have any tips for opening de logfile of Visualcron when they reached more then 2 GB
Sponsor
Forum information
ErikC
2022-05-13T09:03:06Z
Did you try Notepad ++ ?
Uses Visualcron since 2006.
PapoNL
2022-05-16T07:44:58Z
Originally Posted by: ErikC 

Did you try Notepad ++ ?



sadly the filesize is 2GB

Notepad++ cannot open files that are larger than 2GB. The tool will simply display an error message informing you the file is too large to be opened.
ErikC
2022-05-17T07:10:53Z
What you can do is splitting this file in smaller parts. You can do that with a powershell task:

$upperBound = 100MB # calculated by Powershell
$ext = "log"
$rootName = "log_"
$destination = "F:\Apps\Visualcron\log\"

$reader = new-object System.IO.StreamReader("F:\Apps\FileZilla Server\Logs\fzs-2022-02-09.log")
$count = 1
$fileName = "{0}{1}{2}.{3}" -f ($destination, $rootName, $count, $ext)
while(($line = $reader.ReadLine()) -ne $null)
{
    Add-Content -path $fileName -value $line
    if((Get-ChildItem -path $fileName).Length -ge $upperBound)
    {
        ++$count
        $fileName = "{0}{1}{2}.{3}" -f ($destination,$rootName, $count, $ext)
    }
}
$reader.Close()


Now with the 100Mb files, you can open them with any text editor.

Regards
Erik
Uses Visualcron since 2006.
PapoNL
2022-05-25T13:51:13Z
Michael Fjellström
2022-05-31T09:51:59Z
Originally Posted by: PapoNL 

Its fixed now thanks!



Thanks for the information and thank you ErikC for your suggestions on this issue.
Scroll to Top