Saving text in a text box

Does anyone know how to save the text from a textbox to a .bat file so it can then be run using the shell command from VB?


Thanks alot,


Comments

  • Open "whatever.bat" for output as 1

    Print #1, Text1.Text

    Close


  • : Does anyone know how to save the text from a textbox to a .bat file so it can then be run using the shell command from VB?


    : Thanks alot,


    Move it to a RichTextBox1.text and use the following code:


    RichTextBox1.SaveFile "C: empmy.bat", rtfText


    URL:616.html

  • That depends on the version he is using. I use VB1, 2 and 3 and there are no RichTextboxes in them.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories