How To Open Write File With Shell 
Author Message
 How To Open Write File With Shell

 I want to be able to display a .wri file when program runs.
using Retval = Shell("c:\windows\write.exe", 1)  I can display windows
write.
but what i want to happen is start write.exe and open file. I have tried
using
Retval = Shell("c:\windows\write.exe /c:\dir\file\test.wri",1) but does
not work.
Could someone tell me what i am doing wrong. Thanks for any help.



Thu, 30 Dec 1999 03:00:00 GMT  
 How To Open Write File With Shell

Just remove the / before the c:\... and you should be up and running!

Hope this helps...

Miguel Santos
__________________________________________________________



Quote:
>  I want to be able to display a .wri file when program runs.
> using Retval = Shell("c:\windows\write.exe", 1)  I can display windows
> write.
> but what i want to happen is start write.exe and open file. I have tried
> using
> Retval = Shell("c:\windows\write.exe /c:\dir\file\test.wri",1) but does
> not work.
> Could someone tell me what i am doing wrong. Thanks for any help.




Thu, 30 Dec 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. write a command in shell-opened prog?

2. Open a text file, search for place holder, then write data to file

3. writing shell to a file

4. Can we use Shell to write file properties

5. Open MS Access database from VB .exe file (Shell)

6. Opening files with Shell, How Please ?

7. Opening UDL files with shell command

8. Opening UDL files with shell command

9. Opening Files w/o using the shell command

10. Opening files with Shell, How Please ?

11. VB4.0 problem: open data file with shell function

12. Using Shell Command to open pdf files.

 

 
Powered by phpBB® Forum Software