Thanks for the reply. I tried to follow your directions as best I could. (I tried to solve the change directory problem with using the programs full URL) But the code below (Using VBA in excel) does not run nView (so doesn’t of course load the profile). (Note I am able to use Shell to run other programs in this manner.)
I have version 136.28 on a Windows 7. NView itself is working fine on the machine (when I am not trying to get it to go via Excel VBA .
Here is my code that I have tried. Any advice would be greatly appreciated.
RundllProgramPath = "C:\Windows\System32\rundll32.exe"
NViewProgramPath = "C:\Program Files\NVIDIA Corporation\nview\nView64.dll"
CmdLine = ", nViewCmd loadprofile "
ProfilePath = "C:\ProgramData\NVIDIA Corporation\NView\sessionACopy.tvp"
' Comment: Now put them all together to use with the Shell() command
AllCommands = RundllProgramPath & " " & NViewProgramPath & CmdLine & ProfilePath
'Comments: Run with Shell() using NView version 136.28
RunNVIEWProfile = Shell(AllCommands, 1)
' Comment: 1= normal focus
RESULT: does nothing.
Really looking forward to hearing from you,
All the best