Jan 13th, 2000, 02:23 AM
I'm having trouble opening a Notepad file with Shell.
I can open Notepad itself (no problem) with:
RetVal = shell("c:\windows\notepad.exe",1)
but when I add a switch ("/ FileName.txt") I get an error: "can't find file"
When I try the same syntax in Run in Start Menu, it opens the file directly.
Any suggestions?
Thanks.
I can open Notepad itself (no problem) with:
RetVal = shell("c:\windows\notepad.exe",1)
but when I add a switch ("/ FileName.txt") I get an error: "can't find file"
When I try the same syntax in Run in Start Menu, it opens the file directly.
Any suggestions?
Thanks.