Results 1 to 4 of 4

Thread: using wordpad

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Santo Domingo,D.N., Dom. Rep.
    Posts
    707

    Talking using wordpad

    With This code ShellExecute 0, "Open", sFileName, 0, 0, 3
    i can open a file using notepad, but if i want to use wordpad?
    Can anyone help, pls?

  2. #2
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280
    hi,

    use shell like:

    Shell ("C:\Program Files\Windows NT\Accessories\wordpad.exe Try.txt")
    A man with nothing to live for has everything to fight for...

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    VB Code:
    1. ShellExecute 0, "Open", "wordpad", "C:\test.txt", 0, 3

  4. #4
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Originally posted by kleinma
    VB Code:
    1. ShellExecute 0, "Open", "wordpad", "C:\test.txt", 0, 3
    A lot of the built in windows apps are in the environment variables, so you can call them with their names...(this includes the command prompt(cmd), explorer etc.)

    Cheers
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

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