TD
2009-11-05 21:02:46 UTC
I am trying to write a script that I can launch from a login bat file that
looks for a location of a program. Once the file location is found I want to
take that location and dumps it to a reg key. Here's an example
We want to set a default photo viewer on our network and would like to use
Microsoft Office Picture Manager. I have found that this file can be located
in different locations. On log in I would like the script to check basically
3 locations (c:\program files\Microsoft office\Office11, c:\program
files\Microsoft office\Office12, and c:\program files\Microsoft
office\ART\Office12) and then copy the path that is finds the OIS.exe file
to a key in the registry.
Can someone point me to the easiest cleanest way to do this.
TIA
looks for a location of a program. Once the file location is found I want to
take that location and dumps it to a reg key. Here's an example
We want to set a default photo viewer on our network and would like to use
Microsoft Office Picture Manager. I have found that this file can be located
in different locations. On log in I would like the script to check basically
3 locations (c:\program files\Microsoft office\Office11, c:\program
files\Microsoft office\Office12, and c:\program files\Microsoft
office\ART\Office12) and then copy the path that is finds the OIS.exe file
to a key in the registry.
Can someone point me to the easiest cleanest way to do this.
TIA