Skip to content

Commit

Permalink
Merge pull request #7 from IT-Students-Web-Project/Fariusz
Browse files Browse the repository at this point in the history
Dodano czyszczenie harmonogramu
  • Loading branch information
Fariusz authored Feb 3, 2021
2 parents 7499de9 + eb36bc9 commit ae1ddb1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ AutoBackup/log.log
AutoBackup/schedule.dat
AutoBackup/log.log
AutoBackup/schedule.dat
AutoBackupConsole/schedule.dat
2 changes: 1 addition & 1 deletion AutoBackup/AutoBackup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ int main()
{
vector<BackupProperties> tasks = taskLoader.loadTasks();
taskExecutor.execute(tasks);
Sleep(5000);
Sleep(30000);
}
}
7 changes: 6 additions & 1 deletion AutoBackupConsole/Dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,12 @@ void Dialog::saveTask(const BackupProperties& backup)

void Dialog::clearTasks()
{
std::ofstream ofs;
ofs.open("schedule.dat", std::ofstream::out | std::ofstream::trunc);
ofs.close();
/*
if(!(DeleteFileA((LPCSTR)TEXT(".\schedule.dat"))))
{
{
refreshConsole();
printf("Wyst¹pi³ b³¹d. Naciœnij dowolny przycisk...");
Expand All @@ -182,6 +186,7 @@ void Dialog::clearTasks()
{
showMessage("Usuniêto wszystkie zadania\n");
}
*/
}

string Dialog::showDirDialog(string text)
Expand Down
2 changes: 0 additions & 2 deletions AutoBackupConsole/schedule.dat
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
02-02-2021 19:26:00 00 00:01 C:\test C:\test_bak 0
02-02-2021 19:25:30 00 00:01 C:\test C:\test_bak 0

0 comments on commit ae1ddb1

Please sign in to comment.