Updated Scheduling exports on Windows (markdown)

Yudi
2019-09-17 15:07:08 -03:00
parent 84b41a6ef7
commit d1ff2842a6

@@ -20,7 +20,7 @@ If($TOKENTYPE -match "BOT"){$ISBOTYES = "-b"}
Else{$ISBOTYES = ""}
.\DiscordChatExporter.Cli.exe export -t $TOKEN $ISBOTYES -c $CHANNEL -f $EXPORTFORMAT -o exporttmp
$Date = Get-Date -Format "yyyy-MMM-dd HH-mm"
$Date = Get-Date -Format "yyyy-MM-dd HH-mm"
If($EXPORTFORMAT -match "PlainText"){mv exporttmp -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.txt"}
ElseIf($EXPORTFORMAT -match "HtmlDark"){mv exporttmp -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.html"}
@@ -54,7 +54,7 @@ exit
**1.** Press Windows + R, type `shell:startup` and press ENTER
**2.** Paste `filename.ps1` or a shortcut to this folder
**2.** Paste `filename.ps1` or a shortcut into this folder
## Scheduling with Task Scheduler