- Oct 25, 2007
- 1,981
- 1
- 0
Hi folks, this is my first post here at anandtech, though I've been an onlooker for many months.
I got bored at work and decided to try writing some startup scripts. I've got a basic programming background and understand the logic well enough. Here is my problem. I'm trying to get a text file to launch (2 of them actually).
I was able to get the files to launch using the following code:
==
dim objNotes
set objNotes = CreateObject("Shell.Application")
objNotes.Open("c:\shorties.txt")
==
But it is launching in the wrong place. I was able to open up a few IE browsers and have them positioned where I want, but the InternetExplorer.Application Object has top, left, and width properties that the Shell.Application apparently does not.
I've spent the better part of the last few hours at work scouring the internet for anything that might help, but the only references to text files I ever find are read/write operations that don't open the file itself.
Does anyone have any advise on another Object I might be able to use to open a text file? I'd like it to open in NotePad or WordPad, but I can't seem to find any reference to a NotePad.Application or WordPad.Application class that I can use to open text files.
If nothing else could someone point me in the right direction of a solid reference (preferably online) that will actually tell me what all the object/classes are like InternetExplorer.Application?
I've found quite a few great resources so far, but none have anything like a comprehensive list and none even show an InternetExplorer.Application except as an example.
Thanks in advance,
Bob
I got bored at work and decided to try writing some startup scripts. I've got a basic programming background and understand the logic well enough. Here is my problem. I'm trying to get a text file to launch (2 of them actually).
I was able to get the files to launch using the following code:
==
dim objNotes
set objNotes = CreateObject("Shell.Application")
objNotes.Open("c:\shorties.txt")
==
But it is launching in the wrong place. I was able to open up a few IE browsers and have them positioned where I want, but the InternetExplorer.Application Object has top, left, and width properties that the Shell.Application apparently does not.
I've spent the better part of the last few hours at work scouring the internet for anything that might help, but the only references to text files I ever find are read/write operations that don't open the file itself.
Does anyone have any advise on another Object I might be able to use to open a text file? I'd like it to open in NotePad or WordPad, but I can't seem to find any reference to a NotePad.Application or WordPad.Application class that I can use to open text files.
If nothing else could someone point me in the right direction of a solid reference (preferably online) that will actually tell me what all the object/classes are like InternetExplorer.Application?
I've found quite a few great resources so far, but none have anything like a comprehensive list and none even show an InternetExplorer.Application except as an example.
Thanks in advance,
Bob