473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Execute a .vsb file from C++ or VB or whatever

Atli
5,058 Expert 4TB
Hi o/

I'm trying to create a .exe file who's only purpose is to execute a .vbs script file, and this would have to work on a computer without any extra stuff like .Net framework or Java. (wich is annoying cuz I could do it on my own in C#).

I decided to try C++, only to find out the difference between C'# and C++ is somewhat like the difference between English and Chineese, and with all my C# experiance I wouldn be able to write a "Hello world" console app to save my live :P

So if anybody has a magic way of either executing my .vbs file or transforming it into a .exe file It would pretty much make my year :)

Thanks.
Jan 15 '07 #1
3 2170
Soujiro
35
Hi o/

I'm trying to create a .exe file who's only purpose is to execute a .vbs script file, and this would have to work on a computer without any extra stuff like .Net framework or Java. (wich is annoying cuz I could do it on my own in C#).

I decided to try C++, only to find out the difference between C'# and C++ is somewhat like the difference between English and Chineese, and with all my C# experiance I wouldn be able to write a "Hello world" console app to save my live :P

So if anybody has a magic way of either executing my .vbs file or transforming it into a .exe file It would pretty much make my year :)

Thanks.

C# is like sleeping in a bunch of munchkins and all the girls around you are twisting themselves with nothing to think about and no problems..
C++ got a lot of noisy pointers( not so much like C ) and a lot of files to create and all the allocations... but C++ application runs fast..

You need to use the system function of C++ in stdlib.h.. and manipulate it as you want.. Be warned: system is hacker friendly and is system dependent..
Jan 15 '07 #2
Banfa
9,065 Expert Mod 8TB
Or you can use one of the functions

ShellExecute

url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp]SheelExecuteEx[/url]

CreateProcess
Jan 15 '07 #3
Atli
5,058 Expert 4TB
Thanks for the tips guys.. I'm determined now to teach myself C++ :)

In the meanwhile I found a nice little program that changes .bat files into .exe files...
So I just created a .bat file to open my .vbs file and converted it into a .exe file \o/

Program is called Quick Batch File Compiler and can be found at www.abyssmedia.com
Jan 15 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: David Hughes | last post by:
For example, in Python in a Nutshell, Alex Martelli shows how you can run a Windows (notepad.exe) or Unix-like (/bin/vim) text editor using os.spawnv(os.P_WAIT, editor, ) But how would you call...
4
by: paul dallaire | last post by:
HI! I want to execute a link witch is in JavaScript, How do we execute this in asp server side if possible? Basically I don't want anyone to see this link in the code view. this is the link...
1
by: Allen | last post by:
I have installed the Updater Application Block, and then I should Deploy the QuickStarts. " Install the QuickStarts After you install the Updater Application Block, you should install the...
14
by: technocrat | last post by:
db2 -t -v -f/home.../filename >output_file-name I have a java stored procedure..which has to run the above command...not sure how i can run this command through java.. any suggestions are...
3
by: techtonik | last post by:
Hello, everyb. Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take...
3
by: Mel | last post by:
My server makes a url call that returns a whole bunch of javascripts. I will then have to execute them on the server. I stripped out everything between <bodyand </bodyand I can see the scripts. ...
7
by: sonet | last post by:
in perl we can execute command and get result(command line stdout) by $a=`cmdline parameter`; print $a; in c system('cmdline parameter'); but i can not get the result (command line stdout).
4
by: john_smith_nebraska | last post by:
I am using VISTA . I have IIS enabled . I installed VS 2005 successfully. Under old ASPX you knwo you go to inetpub wwwroot and run a test default.aspx file to see if it executes properly....
9
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.