PLEASE HELP! 2nd Request!

T

TKM

I am trying to figure out a way to put this snippit of code (lic key changed)

'cmd.exe /k "c:\program
files\netinst\niinst32.exe",/Execute:{189BHGTR-4BSD-4311-9C3E-F9YTR8766A86}
/install

into the run box when a user pushes a button on a word document. When I cut
and paste it directly into the run dialog box it works fine. However I need
to find a way to have it done automatically. Anyone have any ideas. Spent
over a day looking into all type of options.
 
G

Graham Mayor

Obviously I can't test it, but
RetVal = Shell("cmd.exe /k """"C:\Program Files\Microsoft
Office\OFFICE11\Winword.exe"" /Safe""""", 1)
works so try:

RetVal = Shell("cmd.exe /k """"c:\program files\netinst\niinst32.exe""
,/Execute:{189BHGTR-4BSD-4311-9C3E-F9YTR8766A86}/install""""", 1)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
T

TKM

Graham,

Thank you it is a good start however it tosses up the dos command but does
not run the actual application. I changed the execute to the correct lic key
but it still does nto work. Any other ideas. Thank you so much for helping
 
G

Graham Mayor

You are welcome :)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top