I have this simple batch file in my application folder that I run to unregister and register all dlls and ocxs. When I run it from explorer in XP it works fine and only unregister/register stuff in that folder, but if I do the same thing in Vista in explorer and right-click on batch file and choose option to run as administrator it starts to unregister everything in my windows\system32 folder not the folder that the batch file is in.
Anyone know how to fix this
This is the contents of the batch file:
for %%1 in (*.dll) do regsvr32 /u /s %%1
for %%1 in (*.ocx) do regsvr32 /u /s %%1
for %%1 in (*.dll) do regsvr32 /s %%1
for %%1 in (*.ocx) do regsvr32 /s %%1