• 0 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: July 6th, 2023

help-circle

















  • It’s only happened twice, after updates, that windows turned one drive back on and remapped my desktops. In those cases I have just turned it back off and remapped back to normal. Then env:username works again and I think the only difference is the space in the path with one drive, though it could be something else breaking when the desktop gets remapped.

    I’m probably using powershell all wrong anyways because I am an amateur.

    I use it to grab a file from an sftp by calling on winSCP, then convert from csv to xlsx using the excel module, then run a bunch of VBA to reformat the file, then save the xlsx with a date stamp. I use task scheduler to run it daily and I have it on like 10 machines.

    Works great when one drive doesn’t mess with my desktop path.