PDA

Click to See Complete Forum and Search --> : shell


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.

Aaron Young
Jan 13th, 2000, 02:27 AM
Try without the Switch, ie.

Shell "Notepad.exe C:\Files\File.txt", vbNormalFocus

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com