| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Feb 17, 2004 1:04 am Post subject: Can you run a VDS5 EXE from inside another VDS5 EXE? |
|
|
I want to be able to run one or more of my homemade VDS5 utilitys from inside another of my Utilitys - Is this possible?
I allready have been successfull in ADDing the #RESOURCE and SAVERES, so please don't need help with that. I'd just sometimes like to run them from inside, and if they are EXAMPLE INI files, would you be able to edit them while inside. (Thanks in advance) |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Feb 17, 2004 1:34 am Post subject: |
|
|
You should be able to use RUN or SHELL OPEN commands
on VDS programs just like you can on any other app.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Feb 17, 2004 1:35 am Post subject: |
|
|
Unfortunately I don't think is possible in any language to do, and if so,
the EXE in question would first have to be extracted to memory etc.,
which is not really running it inside of an executable.
You could use:
| Code: | | shell open,c:\myexe.exe |
to run another EXE of your choice, or simply merge the code together.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Feb 17, 2004 1:41 am Post subject: |
|
|
| Thats what I want, to run it in memory from inside the EXE, that way the program(thats ran in memory from inside another) won't be seen or mistakingly damaged or deleted - etc. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Feb 17, 2004 1:46 am Post subject: |
|
|
You can use a program like Alloy to make an integrated executable
which extracts the packed files each time it runs (with the option to
delete after close & extract on next open) so that the files won't be
lost or damaged:
http://www.vdsworld.com/index.php?page=download&fileid=61 _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Feb 17, 2004 1:51 am Post subject: |
|
|
I don't think that is possible easily as Win32 API has no such options ( I guess for security reasons). I heard there are some tricks to do it - but requires a langauge like C with some help from asm - so to say not within scope of vds. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Feb 17, 2004 2:27 am Post subject: |
|
|
Well I've done that without Alloy, I guess the other thing I want is to have just 1 EXE so you don't really need a Program Installer and all those sub folders and or files.
And sometimes you one might have a file(or utility - etc) that they want to protect from hostile activitys for an example. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Feb 17, 2004 2:32 am Post subject: |
|
|
Thats what I figured CodeScript, since VDS is a interpreted language, I figured the way it uses memory would be an interpreted method also.
Thanks anyway, just allways wondered if it was posible. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Feb 17, 2004 2:39 am Post subject: |
|
|
| I guess to answer the INI part of my question, I could just write the INI info to a seperate LIST and externally feed it as needed, but it would only be availible while the program is running, if you didnt want to use a INI file on disk. |
|
| Back to top |
|
 |
|