simple VBS dos/console application req .NET FW2?

Hello,

I wrote a simple exe file in VB Express and apparently when you run the exe in a dos box (on a Win2003 server) it prompts that it requires .NET Framework 2.xxxx.

Ain't that mainly for the GUI stuff

And is there a way to compile that file to an non-.NET exe but still being fully working
the only thing it does it read out the active directory and save the data to a file (even when I comment out all the fso & ldap stuff it prompts that .net requirement)


Answer this question

simple VBS dos/console application req .NET FW2?

  • JDeas

    Hi!

    If you develop in .NET Framework - you must install it on client machines. This is not about GUI only, this is about whole program runtime. .NET is the system that runs your program (manage it). So even 20 KB application needs 20MB .NET Framework installed.



  • HCTwinJava

    well, there's no free version of the older ones right

    most of the stuff is .vbs scripts, I wanted them as EXE's as some have admin passwords in it.


  • Carl Rosenberger

    The reason the program is so small is because of the .NET framework (however, you could write it in C++ and get it quite small, too). There's a lot which goes on behind the scenes.

    Also, if you hard code your passwords in the EXE they may still be viewable: even in Notepad.

    If you've gone to the expense of installing and using Windows Server 2003, what is the big issue of installing the .NET framework I ask this seriously, because I've see a few 'complaints' that they don't want to install it.



  • pkshih

    Yes. Windows do not run your program, .NET runtime run your program, manage garbage collector, cross-language interop, etc. You write in this environment or you write in older versions of VB (or switch to C++ without .NET).

  • Gimlei

    if you convert the log in script to an exe everyone will be prompted to install .NET FW 2.x if it's not on their system, I see that as a problem when having a lot of users (or we could push it via GPO's)
  • ram1608

    well, it seems that I will write bigger applications in the future aswell.

    it's not only for the login script, that was just an example to point the disadvantage of a simple .NET program.

    So I will go the VB .Net Express way anyway.


  • jony_cool

    I love .NET, but it seems like you may be using the wrong tool for the job! Try AutoIt3, it's a Basic-Like scripting language that compiles into (Very Small) .EXE files and works perfectly. You can find it at http://www.hiddensoft.com/autoit3/. It really is great, I use it all the time for scripting on clients that don't and won't have the .NET Framework installed (we use a lot of thin clients).

    ...Or you could always just install .NET on the client machine, because as we all know, dotnetrocks...

  • FrankSp

    so if I want to run such small exe during a log on script to create a desktop icons they all need to install .NET 2.x first

    this kinda sux, the compiler should check if the .net stuff is used or not and add the needed .NET parts to the exe if needed, well... that's how I should do it


  • simple VBS dos/console application req .NET FW2?