add publish
This commit is contained in:
1 parent
4a4289c75e
commit
3842d84c6f
5 files changed
+18
-7
No files matched your search
+15
-3
@@ -14,9 +14,21 @@ namespace ExportAssistantLog
|
||||
var localAppDataPath = Environment.GetEnvironmentVariable("LOCALAPPDATA");
|
||||
var dbPath = Path.Combine(localAppDataPath, "ShadowBot", "users", "Assistant", "assistant.db3");
|
||||
|
||||
var downloadPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
|
||||
|
||||
var dateString = DateTime.UtcNow.ToString("yyyy-MM-dd");
|
||||
if (Path.Exists(dbPath))
|
||||
{
|
||||
Console.WriteLine(dbPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Assistant database not found.");
|
||||
Console.ReadLine();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var downloadPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
|
||||
|
||||
var dateString = DateTime.UtcNow.ToString("yyyy-MM-dd");
|
||||
var filename = $"{dateString}-assistant-job-logs.csv";
|
||||
var exportPath = Path.Combine(downloadPath, filename);
|
||||
|
||||
|
||||
Reference in new issue
Block a user