Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running an application 1

Status
Not open for further replies.

finitesimian

Programmer
Feb 11, 2006
29
0
0
US
This should be a relatively simple question (I think). Here goes:

I currently have an application that scrapes a bunch of Screen.Area objects, and pastes them into a .txt file on my desktop. At the end of the script, I would like for it to open the .txt file in a new window (maximized). How do I do this?

Here is what it looks like so far (simplified)

Code:
'Assumes Sess0 has already been declared

Dim bunchofstuff As Object
Set bunchofstuff = Sess0.Screen.Area(1,2,1,10)


Open "C:\Documents and Settings\theuser\Desktop\scrape.txt" For Append As #1
    Print #1, bunchofstuff 
close 1

'from here, it needs to open scrape.txt maximized with focus 
Stop
 
This should help. It's not

rc% = Shell("Notepad.exe c:\windows\temp\infopac.txt",3)

the "3" tells it to maximize the window.

calculus
 
Thank you Calculus, it worked. I tried the "shell" command a couple of times prior to posting, but I was getting the proper syntax wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top