Jump to content


Photo

System Command Executer


  • Please log in to reply
13 replies to this topic

#1 Hazard1317

Hazard1317

    GMC Member

  • New Member
  • 20 posts

Posted 29 October 2006 - 06:42 PM

DLL: System_Commands.dll
Author: Solver, Hazard
Link: http://www12.asphost...em_Commands.zip
Website Url: http://www12.asphost4free.com/solver/

Dll Description

Executes System Commands.

How To Use It ?

sys=get_string("Enter a System Command","dir")
global.system = external_define('System_Commands.dll','Execute_Sys',dll_stdcall,ty_string,1,ty_string);
external_call(global.system,sys)

Also you can execute multiple system commands like this:

global.system = external_define('System_Commands.dll','Execute_Sys',dll_stdcall,ty_string,1,ty_string);
external_call(global.system,"DIR")
external_call(global.system,"PING http://microsoft.com")
external_call(global.system,"TELNET http://microsoft.com 80")
external_call(global.system,"PAUSE")
external_call(global.system,"DIR")
external_call(global.system,"PAUSE")
.......
.......
.......
ets.

GOOD LUCK !!!
  • 0

#2 Smarttart62

Smarttart62

    designFUSION™

  • New Member
  • 2619 posts

Posted 29 October 2006 - 06:44 PM

A dll that calls DOS? Does it even return the result back to you like some of the other DOS dll's do?
-Steve
  • 0

#3 Hazard1317

Hazard1317

    GMC Member

  • New Member
  • 20 posts

Posted 29 October 2006 - 06:48 PM

YUP !!! ::lmao::
  • 0

#4 gmazan

gmazan

    Studio 61 Leader

  • Validating
  • 171 posts

Posted 29 October 2006 - 08:19 PM

Oh sweet! this is exactly what I needed (see my topic if you wanna see) THX!

#5 sir raskasar

sir raskasar

    GMC Member

  • New Member
  • 886 posts
  • Version:Unknown

Posted 03 November 2006 - 02:25 PM

nice, this can realy be usefull.

Only with one more thing it would be prefect, add a function to not let it show the cmd window (if possible). and let it return info.

For example, if i call 'Dir', it will just return that info into a string or something similar. (if possible)

Nice dll. good job

Regards,
-SR
  • 0

#6 tsa05

tsa05

    GMC Member

  • GMC Member
  • 1063 posts
  • Version:GM:Studio

Posted 03 November 2006 - 07:46 PM

Correct me if I'm wrong, but is this the same thing as writing sys commands to a bat file and executing it? Which can also be wrapped with silent_dos?

That's how I've always done this stuff (ftp'ing, etc)... But if there's some sort of return stuff that goes on here that makes it more useful, I'd be interested... So, what does it return, and are there things I can do with this that I can't with a bat?
  • 0

#7 Matt13

Matt13

    GMC Member

  • New Member
  • 580 posts
  • Version:Unknown

Posted 03 November 2006 - 08:36 PM

I made the same DLL a while back... mine did it all silently and also returned the result.
  • 0

#8 sir raskasar

sir raskasar

    GMC Member

  • New Member
  • 886 posts
  • Version:Unknown

Posted 03 November 2006 - 10:51 PM

I made the same DLL a while back... mine did it all silently and also returned the result.

<{POST_SNAPBACK}>


Could you PM me your DLL, also with a small example if possible.

Regards,
-SR
  • 0

#9 TGMG

TGMG

    G-java creator

  • New Member
  • 706 posts
  • Version:GM8

Posted 04 November 2006 - 03:59 PM

@sir raskasar - Silent dos can do that.
  • 0

#10 leif902

leif902

    GreenMan Games

  • New Member
  • 748 posts

Posted 12 November 2006 - 03:29 AM

Nice to see people making DLL's but wherever possible you should keep to code and not rely on external resources, if your going to do this, why not use execute_shell()?
-Leif902
  • 0
Sam Whited (Leif902)
YoYo Games Wiki | SamWhited.com (blog)

#11 zephroelectro

zephroelectro

    GMC Member

  • New Member
  • 265 posts

Posted 24 March 2009 - 10:25 PM

File is missing. Can you re-upload?
I like this because it will return the messages from executing the commands.
  • 0

#12 broady08

broady08

    GMC Member

  • New Member
  • 41 posts

Posted 08 June 2010 - 10:39 AM

This looks extremely handy right now...

I know this topics pretty old but can anybody upload it?
  • 0

#13 ThomasM

ThomasM

    GMC Member

  • New Member
  • 18 posts

Posted 13 July 2010 - 09:45 AM

the link is broken, someone please upload this
  • 0

#14 ShadeSpeed

ShadeSpeed

    Procedural Generation King

  • GMC Member
  • 771 posts
  • Version:GM:Studio

Posted 14 August 2014 - 07:56 AM

Does anyone have a link to this? 


  • 0

Marketplace Resources

 

code.png page.png video.png