One more Help Please!!
-
Hi I want to open any document without the .exe file to open it. Example. If I using shell("c:\program files\microsoft office\office\winword.exe c:\temp\mydoc.doc") I dont't wanna that. How i can only put Shell("c:\temp\mydoc.doc") or other command to open it. :)Be Humble in Victory and Strong in Defeat.:) -Het
-
Hi I want to open any document without the .exe file to open it. Example. If I using shell("c:\program files\microsoft office\office\winword.exe c:\temp\mydoc.doc") I dont't wanna that. How i can only put Shell("c:\temp\mydoc.doc") or other command to open it. :)Be Humble in Victory and Strong in Defeat.:) -Het
I am not sure what you mean. But if you are trying to read a text file with a useing visual basic. You would do something like this. Dim my As IO.StreamReader Dim fileInfo As string Then something like my = IO.File.OpenText("A:grades.txt") fileInfo = my.ReadFileToEnd
-
Hi I want to open any document without the .exe file to open it. Example. If I using shell("c:\program files\microsoft office\office\winword.exe c:\temp\mydoc.doc") I dont't wanna that. How i can only put Shell("c:\temp\mydoc.doc") or other command to open it. :)Be Humble in Victory and Strong in Defeat.:) -Het
using ShellExecute (API)... I already posted this before, search the forum for "ShellExecute" :-) greetz ;-) *Niels Penneman*
Software/Dev Site
Personal Site
-
Hi I want to open any document without the .exe file to open it. Example. If I using shell("c:\program files\microsoft office\office\winword.exe c:\temp\mydoc.doc") I dont't wanna that. How i can only put Shell("c:\temp\mydoc.doc") or other command to open it. :)Be Humble in Victory and Strong in Defeat.:) -Het
Process.Start("c:\temp\mydoc.doc") Free your mind...
-
Process.Start("c:\temp\mydoc.doc") Free your mind...
Thanks for the reply man its working great. just wanted to ask if the program associated with the document or file doesn't exist then? we have to catch the exception or is there any other way to out. But thanks again for solving out, man. :)Be Humble in Victory and Strong in Defeat.:) -Het
-
using ShellExecute (API)... I already posted this before, search the forum for "ShellExecute" :-) greetz ;-) *Niels Penneman*
Software/Dev Site
Personal Site
-
Thanks for the reply man its working great. just wanted to ask if the program associated with the document or file doesn't exist then? we have to catch the exception or is there any other way to out. But thanks again for solving out, man. :)Be Humble in Victory and Strong in Defeat.:) -Het
Never thought of that. But I'll check what could you do. :) Free your mind...