Forum Discussion
Gilgamesh1964
Nov 14, 2023Brass Contributor
Is there a way to determine the location of the OneDrive exe file in code?
Hello
I have some VBA macros that have sync issues with OneDrive for Business.
I have found that I can use the /shutdown and /background switches to stop and restart OneDrive as needed; but I still need to find the location of the OneDrive.exe file to run these switches.
If it was only me I could find the file and hardcode the location, but other people may be using the macros on different PCs with different locations; so I'm looking for a way to dynamically find the location.
Are there any environment variables, shell command, registry locations, etc I can use to find this?
Thanks in advance
No RepliesBe the first to reply