forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


notpad question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sun Feb 16, 2003 7:40 pm    Post subject: notpad question Reply with quote

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
View user's profile Send private message
DoT_PiTcH
Contributor
Contributor


Joined: 07 Aug 2002
Posts: 85

PostPosted: Sun Feb 16, 2003 7:46 pm    Post subject: Reply with quote

just go:

run c:\test.txt

or where ever it is....
Back to top
View user's profile Send private message Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sun Feb 16, 2003 7:51 pm    Post subject: hummm Reply with quote

hummm

yea i did that to i get a eorror, like txt ext is not associated with notepad Sad
Back to top
View user's profile Send private message
DoT_PiTcH
Contributor
Contributor


Joined: 07 Aug 2002
Posts: 85

PostPosted: Sun Feb 16, 2003 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sun Feb 16, 2003 8:15 pm    Post subject: Reply with quote

shell open,c:\test.txt

OR

run @windir(s)\notepad.exe c:\test.txt
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sun Feb 16, 2003 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Mon Feb 17, 2003 1:27 am    Post subject: Reply with quote

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
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Mon Feb 17, 2003 1:30 am    Post subject: ok Reply with quote

what about 2000 and nt?

anyone know?

thanks
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Feb 17, 2003 4:18 am    Post subject: Reply with quote

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 Smile

_________________
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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Mon Feb 17, 2003 5:01 pm    Post subject: ok Reply with quote

thanks again for the help Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group