Skip to main content

[archive] wshrun with outlok msg file

  • October 1, 2006
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 26 September 2006]

Hey to all,

we use WshRuntimeLibrary to open files like .doc, .rtf and so on.
everything work` s fine exceptionally outlook msg file. if i open these file
on local drive like c:, it work`s, but if i try to open a file from a network drive i get an error
message "class is not licensed for use (error 800700002).

any idea?s

01 wsh-handle handle of WshShell.
create WshShell of IWshRuntimeLibrary handle in wsh-handle.
modify wsh-Handle @Run(wsh-command, wsh-visible, wsh-wait).

3 replies

[Migrated content. Thread originally posted on 26 September 2006]

Hey to all,

we use WshRuntimeLibrary to open files like .doc, .rtf and so on.
everything work` s fine exceptionally outlook msg file. if i open these file
on local drive like c:, it work`s, but if i try to open a file from a network drive i get an error
message "class is not licensed for use (error 800700002).

any idea?s

01 wsh-handle handle of WshShell.
create WshShell of IWshRuntimeLibrary handle in wsh-handle.
modify wsh-Handle @Run(wsh-command, wsh-visible, wsh-wait).
I assume you run this from the console? The only thing I can imagine is that this relates to execution privileges. The remote msg file being the item to be executed, chances are that it will control the execution privileges and thus, as a remote object does not have sufficient privileges to execute on your computer.

[Migrated content. Thread originally posted on 26 September 2006]

Hey to all,

we use WshRuntimeLibrary to open files like .doc, .rtf and so on.
everything work` s fine exceptionally outlook msg file. if i open these file
on local drive like c:, it work`s, but if i try to open a file from a network drive i get an error
message "class is not licensed for use (error 800700002).

any idea?s

01 wsh-handle handle of WshShell.
create WshShell of IWshRuntimeLibrary handle in wsh-handle.
modify wsh-Handle @Run(wsh-command, wsh-visible, wsh-wait).
Sometimes it?s so easy. Using wrun32 produces the same problem, but the error message is in german in describes the error exactly, "file not found". And file not found is my fault.



thx for reply.

[Migrated content. Thread originally posted on 26 September 2006]

Hey to all,

we use WshRuntimeLibrary to open files like .doc, .rtf and so on.
everything work` s fine exceptionally outlook msg file. if i open these file
on local drive like c:, it work`s, but if i try to open a file from a network drive i get an error
message "class is not licensed for use (error 800700002).

any idea?s

01 wsh-handle handle of WshShell.
create WshShell of IWshRuntimeLibrary handle in wsh-handle.
modify wsh-Handle @Run(wsh-command, wsh-visible, wsh-wait).
These are the most annoying once, the answer right in your eyes, but one just cannot see "the tree for all the forest" :-)

Been there, done that.