Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Automatic Execution
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lord_pwnerer




PostPosted: Sat Nov 04, 2006 8:03 pm   Post subject: Automatic Execution

Does anybody know of a way for a turing stand-alone program to execute itself automatically without manual execution by the user? (Yes I do understand the potential threats of this information) I understand that turing might not be the best language to do this in, but I'm only starting to learn Java.

Thanks
Sponsor
Sponsor
Sponsor
sponsor
neufelni




PostPosted: Sat Nov 04, 2006 8:37 pm   Post subject: (No subject)

The only way that I know of to do this would be to add it as a scheduled task in your Control Panel.
berrberr




PostPosted: Sat Nov 04, 2006 8:39 pm   Post subject: (No subject)

Well this is basically how you do it:
code:
Sys.Exec ("your_program.exe")

What do yah wanna use this for anyways? Hope its for a good purpose...
Dan




PostPosted: Sat Nov 04, 2006 9:39 pm   Post subject: (No subject)

berrberr wrote:
Well this is basically how you do it:
code:
Sys.Exec ("your_program.exe")

What do yah wanna use this for anyways? Hope its for a good purpose...


That whould only be usefull if you whonted to execute your progam from in your program, lol.

For a windows system you whould need to edit the regisitry, edit the boot config files, or place a shortcut to or the program in the windows start menu startup floder. In any case you whould have to make your program do this befor it could be started automaticalky or you our self whould have to do this to the user computer.

If you are trying to make a virus or somthing on the evil side of things turing will not work well since it allways shows a window when excuting and the ablitys are turing are quite limited when it comes to effecting the computer. The best it could do is delete files that are no crictacal to the operation of the computer and eat up memeory by copying it's self.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
berrberr




PostPosted: Sat Nov 04, 2006 10:14 pm   Post subject: (No subject)

Damn I read the question wrong =.=. But to make your program start up automatically up on a windows startup you need to edit the registry key containing startup info, as Hacker Dan said.
[Gandalf]




PostPosted: Sun Nov 05, 2006 12:15 am   Post subject: (No subject)

Hacker Dan wrote:
If you are trying to make a virus or somthing on the evil side of things turing will not work well since it allways shows a window when excuting

Not so.

And, in any case, I don't think Turing can edit the registry... Though I've never really tried it, so, could it?
Dan




PostPosted: Sun Nov 05, 2006 2:45 pm   Post subject: (No subject)

[Gandalf] wrote:
Hacker Dan wrote:
If you are trying to make a virus or somthing on the evil side of things turing will not work well since it allways shows a window when excuting

Not so.

And, in any case, I don't think Turing can edit the registry... Though I've never really tried it, so, could it?


It can, by making a registery file and then exucting it with Sys.exec. Tho i am intrested in how you whould make a truing program not display the window once complied. Maybe you could run it as a background service? Or maybe turing has changed since i used it alot back in 3.x versons Razz
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
[Gandalf]




PostPosted: Sun Nov 05, 2006 5:34 pm   Post subject: (No subject)

Window.Hide(). Wink
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Sun Nov 05, 2006 6:56 pm   Post subject: (No subject)

actually until your program outputs something to the screen it will never open an individual window Wink
Dan




PostPosted: Sun Nov 05, 2006 10:17 pm   Post subject: (No subject)

wow, i guse you do learn somthing every day. But the point still remains that turing is not the best langue to make virues or mulicues programs as (acording to tom west and holth soft) some effort was done well making turing to make it iceloated from the computer so you could not mess much up.

However since you still have access to the comand line you could have some fun with a turgin horses type program using the net comands. Aucatly i blive some one has made a torgin horses in turing befor and posted it some where on the site with alot of warnings.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
rdrake




PostPosted: Sun Nov 05, 2006 10:48 pm   Post subject: (No subject)

Hacker Dan wrote:
wow, i guse you do learn somthing every day. But the point still remains that turing is not the best langue to make virues or mulicues programs as (acording to tom west and holth soft) some effort was done well making turing to make it iceloated from the computer so you could not mess much up.
Don't be so sure, Dan. Virii are often made from modifying another virus.

That being said, I second the windows task scheduler idea.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: