DevOps
DevOps
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
My mommy always told me that a good programmer has Logi hahah
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
And been writing all day and I am so happy that I order and got my new mouse and keyboard last week
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Yes they are. Had some help but you two had helped me a lot to day. I appreciate that 🙂
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Funny thing is that when I got the assignment I found Telerik code converter so I thought that this will be a easy task haha
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
But I am getting that from Directory
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Yes thats true. In the old code oFso is use to GetExtenstionName(FilePath)
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Yes I do not need LastActivity,
What I was trying to do is Finding folder then files in folder but do not need LastActivity
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
I do not know that its for
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
This bit is little wired. What will happen if I write
LastActivity = "Create object Fso";

object? Fso = Activator.CreateInstance(Type.GetTypeFromProgID("Scripting.FileSystemObject"));
LastActivity = "Create object Fso";

object? Fso = Activator.CreateInstance(Type.GetTypeFromProgID("Scripting.FileSystemObject"));
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
'Create objects
sLastActivity = "Create object oFso"
Set oFso = CreateObject("Scripting.FileSystemObject")
'Create objects
sLastActivity = "Create object oFso"
Set oFso = CreateObject("Scripting.FileSystemObject")
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Okej will try that 🙂 Thank you for taking your time helping me 🙂
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Same. Okej Thanks for the tips. Started working about 1 year ago. But man o man a lot more to learn haha
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
So do you code for a living or for hobbies?
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Nice
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
LastActivity = "Writing log file";
Log = Log + Environment.NewLine + "RoboArchiveManager finished at " + DateTime.Now.ToString() + Environment.NewLine + Environment.NewLine;
File.WriteAllText(FileLog, Log);
LastActivity = "Writing log file";
Log = Log + Environment.NewLine + "RoboArchiveManager finished at " + DateTime.Now.ToString() + Environment.NewLine + Environment.NewLine;
File.WriteAllText(FileLog, Log);
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Its for the writing in the logging file later in the code.
LastActivity = "Writing log file";
Log = Log + Environment.NewLine + "RoboArchiveManager finished at " + DateTime.Now.ToString() + Environment.NewLine + Environment.NewLine;
File.WriteAllText(FileLog, Log);
LastActivity = "Writing log file";
Log = Log + Environment.NewLine + "RoboArchiveManager finished at " + DateTime.Now.ToString() + Environment.NewLine + Environment.NewLine;
File.WriteAllText(FileLog, Log);
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
How come my code snippes do not look like yours @dancepanda42 ?
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
This is my result
string[] AttachmentFiles = Directory.GetFiles(ReportSourceRootFolder, "*.pdf", SearchOption.AllDirectories);
LastActivity = String.Concat("report", AttachmentFiles);
foreach (string AttachmentFile in AttachmentFiles)
{
var fileInfo = new FileInfo(AttachmentFile);
if (File.GetLastWriteTime(AttachmentFile) < DateTime.Now - TimeSpan.FromMilliseconds(500) && fileInfo.Extension == ".pdf" && !AttachmentFile.StartsWith("~"))
{
Archive(AttachmentFile, AttachmentDestRootFolder);
}
}
string[] AttachmentFiles = Directory.GetFiles(ReportSourceRootFolder, "*.pdf", SearchOption.AllDirectories);
LastActivity = String.Concat("report", AttachmentFiles);
foreach (string AttachmentFile in AttachmentFiles)
{
var fileInfo = new FileInfo(AttachmentFile);
if (File.GetLastWriteTime(AttachmentFile) < DateTime.Now - TimeSpan.FromMilliseconds(500) && fileInfo.Extension == ".pdf" && !AttachmentFile.StartsWith("~"))
{
Archive(AttachmentFile, AttachmentDestRootFolder);
}
}
54 replies
CC#
Created by DevOps on 10/31/2022 in #help
Operators.ConcatenateObject()
Thank you for you help.
54 replies