|
-
Jun 1st, 2000, 10:00 AM
#1
Thread Starter
New Member
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.
-
Jun 1st, 2000, 10:06 AM
#2
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)
-
Jun 1st, 2000, 10:23 AM
#3
transcendental analytic
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.
-
Jun 1st, 2000, 10:29 AM
#4
I know that Kedaman, but he just wants to use the notepad, i think .
Always trying to find a better way, i see .
-
Jun 1st, 2000, 01:04 PM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|