| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sun Feb 16, 2003 7:40 pm Post subject: notpad question |
|
|
hello all
i'am trying to get notepad.exe to open a file BUT i can't get it to work i can however get notepad to run but it don't open the file i want it to..
test.txt for file name
what i'am i missing?
thanks |
|
| Back to top |
|
 |
DoT_PiTcH Contributor

Joined: 07 Aug 2002 Posts: 85
|
Posted: Sun Feb 16, 2003 7:46 pm Post subject: |
|
|
just go:
run c:\test.txt
or where ever it is.... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sun Feb 16, 2003 7:51 pm Post subject: hummm |
|
|
hummm
yea i did that to i get a eorror, like txt ext is not associated with notepad  |
|
| Back to top |
|
 |
DoT_PiTcH Contributor

Joined: 07 Aug 2002 Posts: 85
|
Posted: Sun Feb 16, 2003 8:03 pm Post subject: |
|
|
you have to tell ihe program where txt file is.... if it is in the directory that your app is shouldnt have a problem.
mine works just fine |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sun Feb 16, 2003 8:15 pm Post subject: |
|
|
shell open,c:\test.txt
OR
run @windir(s)\notepad.exe c:\test.txt |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sun Feb 16, 2003 11:49 pm Post subject: |
|
|
run @windir(s)\notepad.exe c:\test.txt this don't work on 98 this does:
run @windir()\notepad.exe c:\test.txt
so does this mean xp,2000,nt ues the other one?
thanks |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Feb 17, 2003 1:27 am Post subject: |
|
|
| There is a notepad.exe also in c:\windows (windows dir) so you could go ahead and just use @windir(). Win Xp Home |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Mon Feb 17, 2003 1:30 am Post subject: ok |
|
|
what about 2000 and nt?
anyone know?
thanks |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Feb 17, 2003 4:18 am Post subject: |
|
|
If notepad is in the path (and it should be), you can use:
RUN notepad.exe c:\test.txt
OR
SHELL OPEN, notepad.exe, c:\test.txt
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Mon Feb 17, 2003 5:01 pm Post subject: ok |
|
|
thanks again for the help  |
|
| Back to top |
|
 |
|