Include and run a script within a program

Posted by Sammyboy99, 02-18-2011, 06:53 PM
So I've made a program that executes a script the only problem is that I'm not sure on how to store the file? Like it will be in a zip so the person could extract to anywhere and they may not move the script with it. Is there a way I could put the script in the program. I'm coding in VB.net

Posted by Mtnside-Solution, 02-19-2011, 09:31 PM
Are you trying to protect your source code? file itself? Your question is not to clear.

Posted by jack369, 02-19-2011, 10:07 PM
I think you can do it using resource files. Maybe this will help http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

Posted by Sammyboy99, 02-20-2011, 05:58 AM
I've added it as a reference but how do I use it/run it?

Posted by jack369, 02-20-2011, 12:32 PM
What kind of script is it? I am not familiar with visual basic but I think you need to use the LoadResData function to get the resource.

Posted by Sammyboy99, 02-21-2011, 03:41 AM
It's probaly gonna be a .bat or .exe

Posted by jack369, 02-21-2011, 01:18 PM
The easiest way I can think of doing it is by creating a temporary file and running that. Something like this except in Visual Basic

هل استفدت من هذا الجواب؟

 أطبع هذا المقال

اقرأ أيضا

Need Script for small business.

Posted by brandonsky47, 11-09-2012, 04:20 AMHello, I need a script for my business, either free...

sdb instead of sda -> Help needed

Posted by CoolMike, 07-17-2007, 03:23 AMHi I have a server with a raid5 configuration. Linux...

Rsync Error!

Posted by rkm11, 09-16-2007, 12:26 AMI type rsync and after the man page, it says Any Ideas?...

Forwarding/Default+POP3 Addy Doesnt Work - Piping/Webmail Works

Posted by InfiniteTech, 09-13-2007, 02:06 PMHello, My server which runs cPanel (license issued...

beating my head over a php/my_sql error

Posted by star_dancer, 01-16-2008, 06:15 PMI'm getting an error and I can't figure it out. I...