Hi folks,
Possibly somewhat old-skool question:
I use a .bat file to launch our CAD software. The script sets up a working environment by syncing some template libraries, cleaning up some temporary files, setting a working directory and then loading the package. This lets me set several environments (some clients have their own configs) and then put a shortcut to the .bat file on the user's Start Menu.
(I could do it in PowerShell but this has been historically done by admins in the old Windows command prompt and I'd have to rewrite)
One problem - if the working directory is in a user's OneDrive for backup purposes, and we're working under two orgs with their own MS 365 tenants (my firm and a spin-out with different ownership), then the
Anyone else had this problem? I think I may end up hard coding it, but would be nice to do it somewhat programmatically.
Possibly somewhat old-skool question:
I use a .bat file to launch our CAD software. The script sets up a working environment by syncing some template libraries, cleaning up some temporary files, setting a working directory and then loading the package. This lets me set several environments (some clients have their own configs) and then put a shortcut to the .bat file on the user's Start Menu.
(I could do it in PowerShell but this has been historically done by admins in the old Windows command prompt and I'd have to rewrite)
One problem - if the working directory is in a user's OneDrive for backup purposes, and we're working under two orgs with their own MS 365 tenants (my firm and a spin-out with different ownership), then the
%OneDriveCommercial%
system variable that I'm using to keep the working directory in Company1 randomly switches from C:\Users\<user>\Company1\
to C:\Users\<user>\Company2\
.Anyone else had this problem? I think I may end up hard coding it, but would be nice to do it somewhat programmatically.