Results 1 to 5 of 5

Thread: shelling text

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    Spring Valley,ca
    Posts
    4
    how do you shell text?
    how do you shell a string?
    example text1.text="c:\win98\xxx.exe z:\mylist.xxx"

    ps
    Dim RetVal
    RetVal = Shell(Text1.Text, 1)
    did not work for me.

  2. #2
    Guest
    You can't exactly shell text, but you can shell text in a notepad.

    Code:
    ffile = "C:\Mytext.txt"
    Open "" & ffile & "" for output as #1
    Print #1, "My text."
    Close #1
    
    Shell("Notepad.exe " & ffile & ", 1)

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    To shell a filetype with it's default application you can use shellexecute api
    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
    Guest
    I know that Kedaman, but he just wants to use the notepad, i think .
    Always trying to find a better way, i see .

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    Spring Valley,ca
    Posts
    4

    shelling text

    i found out my problem
    you really can shell a string.

    mybatch_file_with_command_lines$ = Text2.Text
    'ie C:\My Bats\test.bat --text2.property
    'or adding other strings together

    Dim RetVal
    RetVal = Shell(Text2.Text, 1)

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