|
-
Feb 18th, 2000, 02:43 AM
#1
Thread Starter
Hyperactive Member
Thanks for the help here guys.
And JazzBass, does your office really use VB3? God I pity you if so!
thanks
Andrew
------------------
Andrew Nerney
Hapless Programmer
[email protected]
-
Feb 18th, 2000, 12:15 PM
#2
Thread Starter
Hyperactive Member
Could someone show me the code to open a specific text file with Notepad or Wordpad? I know I can use the Shell command to launch the application, but how would I open a specific file, e.g. ANDREW.txt?
Thanks in advance,
Andrew
------------------
Andrew Nerney
Hapless Programmer
[email protected]
-
Feb 18th, 2000, 12:32 PM
#3
Try this:
Call Shell("notepad.exe MyFile.txt", vbNormalFocus)
------------------
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
-
Feb 18th, 2000, 12:34 PM
#4
Hyperactive Member
Create form with a command button and paste the following code in the click event of the command button:
'Whatever the Notepad path and file name is
sNotePadPath = "C:\winnt\notepad.exe "
'File to open
sFileName = "andrew.txt"
x = Shell(sNotePadPath & sFileName, 3)
Hope that helps.
JazzBass
------------------
21 yr old beginner VB Programmer
VB 6 Professional @ Home
VB 3 Professional @ the Office
-
Feb 24th, 2000, 01:57 AM
#5
Hyperactive Member
-
Feb 24th, 2000, 02:48 AM
#6
Thread Starter
Hyperactive Member
I was wondering the same thing, Jazz. SysOp says that there are changes being made to the structure of these boards, so maybe the most recent message displays first now? Or it could be just a bug - this is a VB board and VB is known for its occasional problems
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|