mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-04 00:53:55 +00:00
Clean up the docs more
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
We'll be using [DiscordChatExporter CLI](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest), PowerShell, and Task Scheduler.
|
||||
|
||||
**1.** Open a text editor such as Notepad and paste:
|
||||
1. Open a text editor such as Notepad and paste:
|
||||
|
||||
```powershell
|
||||
# Info: https://github.com/Tyrrrz/DiscordChatExporter/wiki
|
||||
@@ -29,54 +29,47 @@ ElseIf($EXPORTFORMAT -match "Csv"){mv "$FILENAME.tmp" -Destination "$EXPORTDIREC
|
||||
exit
|
||||
```
|
||||
|
||||
**2.** Replace:
|
||||
2. Replace:
|
||||
|
||||
`tokenhere` with your [Token](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/.docs/Token-and-IDs.md)
|
||||
|
||||
`channelhere` with a [Channel ID](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/.docs/Token-and-IDs.md)
|
||||
|
||||
`exefolderhere` with the .exe **directory's path** (e.g. C:\Users\User\Desktop\DiscordChatExporter)
|
||||
|
||||
`filenamehere` with a filename without spaces
|
||||
|
||||
`dirhere` with the export directory (e.g. C:\Users\User\Documents\Exports)
|
||||
|
||||
`formathere` with one of the available export formats
|
||||
- `tokenhere` with your [Token](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/.docs/Token-and-IDs.md)
|
||||
- `channelhere` with a [Channel ID](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/.docs/Token-and-IDs.md)
|
||||
- `exefolderhere` with the .exe **directory's path** (e.g. C:\Users\User\Desktop\DiscordChatExporter)
|
||||
- `filenamehere` with a filename without spaces
|
||||
- `dirhere` with the export directory (e.g. C:\Users\User\Documents\Exports)
|
||||
- `formathere` with one of the available export formats
|
||||
|
||||
Make sure not to delete the quotes (")
|
||||
|
||||
**3.** Save the file as `filename.ps1` not `.txt`
|
||||
3. Save the file as `filename.ps1` not `.txt`
|
||||
|
||||
## Export at Startup
|
||||
|
||||
**1.** Press Windows + R, type `shell:startup` and press ENTER
|
||||
|
||||
**2.** Paste `filename.ps1` or a shortcut into this folder
|
||||
1. Press Windows + R, type `shell:startup` and press ENTER
|
||||
2. Paste `filename.ps1` or a shortcut into this folder
|
||||
|
||||
## Scheduling with Task Scheduler
|
||||
|
||||
Please notice your computer must be turned on so the exportation can occur.
|
||||
|
||||
**1.** Press Windows + R, type `taskschd.msc` and press ENTER
|
||||
|
||||
**2.** Select `Task Scheduler Library`, create a Basic Task, and follow the instructions on-screen
|
||||
1. Press Windows + R, type `taskschd.msc` and press ENTER
|
||||
2. Select `Task Scheduler Library`, create a Basic Task, and follow the instructions on-screen
|
||||
|
||||
<img src="https://i.imgur.com/MHRVGDi.png" height="500"/>
|
||||
|
||||
[  ](https://i.imgur.com/3gHkF0t.png)
|
||||
|
||||
**3.** At 'Start a Program', write `powershell -file -ExecutionPolicy ByPass -WindowStyle Hidden "C:\path\to\filename.ps1"` in the Program/script text box
|
||||
3. At 'Start a Program', write `powershell -file -ExecutionPolicy ByPass -WindowStyle Hidden "C:\path\to\filename.ps1"` in the Program/script text box
|
||||
|
||||

|
||||
|
||||
**4.** Click 'Yes'
|
||||
4. Click 'Yes'
|
||||
|
||||

|
||||
|
||||
**5.** Click 'Finish'
|
||||
5. Click 'Finish'
|
||||
|
||||

|
||||
|
||||
#
|
||||
---
|
||||
|
||||
Special thanks to [@Yudi](https://github.com/Yudi)
|
||||
|
||||
Reference in New Issue
Block a user