Shell command problems
Posted on 2002-05-27
I'm experiencing a wierd problem when trying to execute a Shell command within a simple VB program. I am trying to run Shell("d:\program files\calc.exe", vbMaximizedFocus) and I am getting Invalid Procedure call or argument. If I try and run Shell("d:\temp\calc.exe", vbMaximizedFocus) it works fine, same with Shell("c:\program files\calc.exe", vbMaximizedFocus). It's just that one folder on the D drive that is causing this error. Within a VB program I can write to a text file within the d:\program files\ folder so I am cunfused as to why this error is occuring.
If anyone can shed some light on this I would appreciate it.