Results 1 to 7 of 7

Thread: Opening files into notepad

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Location
    Lindenwold, NJ, USA
    Posts
    67

    Smile

    I need help!!! I want to export a certain file type to launch in Notepad not its original file.
    Frankie Weindel
    VB 6 Learning Edtion SP3

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    I'm not sure exactly what you mean, hope this is what you wanted:
    Shell ("notepad xxx")

    Where xxx is the full path of the file.
    "People who think they know everything are a great annoyance to those of us who do."

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I'm not sure either but if you want to im sure you can manipulate registry and replace the txt keys with your own format
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Location
    Lindenwold, NJ, USA
    Posts
    67
    NO I mean like opening a doc. file in notepad and not in wordpad
    Frankie Weindel
    VB 6 Learning Edtion SP3

  5. #5
    Guest
    If it's in RichTextformat, you're goning to end up with a bunch of scribbles if you open it n ASCII text.

    If not, you could do what kedaman said and change the registry or you could open the file, get the text and put it on the clipboard, Next, Shell Notepad and send the Paste command (Ctrl V) and the text will appear in Notepad!

    It's not the best way, but it works.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Also, You can load the file into a richtextbox and copy the richtextbox.text and save it to a tempfile that you open with notepad
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7
    Guest
    Call Shell("Notepad.exe "C:\Autoexec.bat", vbNormalFocus)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width