Post: [VB.NET] Get code from file
04-19-2011, 04:06 PM #1
Superchunk
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); I want to make an app that gets its code from a txt file in the application's startup directory. what would be the code for that?
(adsbygoogle = window.adsbygoogle || []).push({});
04-19-2011, 05:35 PM #2
IVThaKiller
Gym leader
Here is the code: (As the kid above me can't provide, since he does not even have any knowledge of VB)

            Dim FileName As String = "" 'File name, and where to save.
Dim Text As String = "" ' Text that will save in it.

System.IO.File.WriteAllText(FileName, Text)


Just input the text in the quotes.
04-19-2011, 08:35 PM #3
Superchunk
Are you high?
Originally posted by IVThaKiller View Post
Here is the code: (As the kid above me can't provide, since he does not even have any knowledge of VB)

            Dim FileName As String = "" 'File name, and where to save.
Dim Text As String = "" ' Text that will save in it.

System.IO.File.WriteAllText(FileName, Text)


Just input the text in the quotes.


/facepalm you didnt understand, i meant that the code would be in the txt file and the app would run the code in the txt file
04-20-2011, 02:29 AM #4
AlabamaHit
ROLL TIDE!!!
Google how to execute a 'batch' file from .net. That is what you need. It isn't going to run 'text' you need to make it a batch file, and run that.

Google is your friend. Winky Winky
04-20-2011, 02:55 AM #5
IVThaKiller
Gym leader
Originally posted by AlabamaHit View Post
Google how to execute a 'batch' file from .net. That is what you need. It isn't going to run 'text' you need to make it a batch file, and run that.

Google is your friend. Winky Winky


I don't think he meant that. I think he meas to execute the tool it self from a .txt file. Which there is no way to do it.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo