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.
Printable View
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.
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)
To shell a filetype with it's default application you can use shellexecute api
I know that Kedaman, but he just wants to use the notepad, i think :).
Always trying to find a better way, i see :p.
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)