CedArctic / DigiSpark-Scripts

USB Rubber Ducky type scripts written for the DigiSpark.
MIT License
1.9k stars 604 forks source link

Update WiFi_Profile_Mailer_New.ino #58

Closed kylefmohr closed 3 years ago

kylefmohr commented 3 years ago

The current code causes a Powershell error that causes 'temp.csv' to never get attached to the email. This is because the first PS line saves temp.csv to the user's home directory, whereas the second PS line tries to attach temp.csv from the system32 folder. To fix this I changed the first line to instead save it to system32, which is the default path for an admin Powershell session.

CedArctic commented 3 years ago

Thank you @kylefmohr ! Forgive the delay in review, I'm merging the commit.