Poster | Thread |
BooBoo
| |
Request - Simple executable to start Script Posted on 1-Dec-2010 20:05:24
| | [ #1 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| Hi im hopping someone can help - Id like to request and hope its not asking to much an executable that runs a script/Batch File in a folder called RBoot: file Start.
So a file that can go in the C: folder when executed then executes batch file RBoot:Start
Or maybe point me in the right direction Thanks Again :) |
|
Status: Offline |
|
|
zerohero
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 20:20:15
| | [ #2 ] |
|
|
|
Team Member |
Joined: 4-May-2004 Posts: 2524
From: Uddevalla, Sweden | | |
|
| @BooBoo
It's called C:Execute and has been there since always.
EDIT:
Or you could just run the script directly. Just be sure to set the S protection bit. Last edited by zerohero on 01-Dec-2010 at 08:23 PM.
_________________ Common sense - So rare it's almost like a super power |
|
Status: Offline |
|
|
OldFart
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 20:24:02
| | [ #3 ] |
|
|
|
Elite Member |
Joined: 12-Sep-2004 Posts: 3060
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat! | | |
|
| @BooBoo
C:Execute springds to mind here.
This is the syntax: C:Execute < script > [{< arguments >}]
Further inf o you can find in the help file, available through SYS:System/Help.
OldFart _________________ More then three levels of indigestion and you're scroomed! |
|
Status: Offline |
|
|
BooBoo
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 20:38:36
| | [ #4 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| Sorry guys no good this is how I would of course normaly execute a Script but I want to do it from an icon and not using IconX. When the Icon looks for the Default Tool, which is a 68k Classic tool it will run this executable instead and run my scipt. |
|
Status: Offline |
|
|
zerohero
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 20:43:32
| | [ #5 ] |
|
|
|
Team Member |
Joined: 4-May-2004 Posts: 2524
From: Uddevalla, Sweden | | |
|
| |
Status: Offline |
|
|
BooBoo
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 20:46:57
| | [ #6 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| @zerohero
Sorry Dude thats not going to work the Default Tool is WHDload or JST etc any 68k any Default tool - I need an executable I can call WHDload and stick in the C: folder
When the icon is clicked and looks for WHDload it will run my scipt
Last edited by BooBoo on 01-Dec-2010 at 08:48 PM.
|
|
Status: Offline |
|
|
zerohero
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 20:49:15
| | [ #7 ] |
|
|
|
Team Member |
Joined: 4-May-2004 Posts: 2524
From: Uddevalla, Sweden | | |
|
| @BooBoo
Eh? I doubt anyone will want to write a program called WHDLoad that does something else than WHDLoad itself. Why would you want to do that? _________________ Common sense - So rare it's almost like a super power |
|
Status: Offline |
|
|
OldFart
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 20:50:54
| | [ #8 ] |
|
|
|
Elite Member |
Joined: 12-Sep-2004 Posts: 3060
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat! | | |
|
| @BooBoo
Ehm, MakeLink maybe? C:MakeLink FROM C:WHDload TO C:IconX SOFT
Now, when you click an icon that has WHDload as Default Tool, instead IconX is executed.
OldFart _________________ More then three levels of indigestion and you're scroomed! |
|
Status: Offline |
|
|
BooBoo
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 21:06:17
| | [ #9 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| @OldFart Yes - Something like this MakeLick From WHLOAD to C:Execute RBoot:Start But im getting errors - Packet Request unkown, etc
If you get a chance could you check it out - ill do a google Thanks
|
|
Status: Offline |
|
|
OldFart
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 21:28:22
| | [ #10 ] |
|
|
|
Elite Member |
Joined: 12-Sep-2004 Posts: 3060
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat! | | |
|
| @BooBoo
From what i understood sofar you have a file, a script file, with Default Tool set to 'WHDload'. Every time you double-click that script file's icon, you want to execute the script not by WHDload, but by Execute. You do NOT want to change the scriptfile's Default Tool. You probably have a very valid reason for this, but this eludes me (and ZeroHero probably) at the moment.
You can do two things: Either make THIS link: C:MakeLink FROM WHDload to C:Execute SOFT
Or go along this path: Make a new directory next to the one with the script file. Let's assume for the moment that the scriptfile is in directory 'WHDloadScripts' and is called just 'Script'.
Now you make a new directory next to 'WHDloadScripts', called 'WhatEverYouWant'. Next thing, you make a link: C:MakeLink FROM "WhatEverYouWant/Script" TO "WHDloadScripts/Script" SOFT Go to 'WhatEverYouWant' and choose 'Information' for the entry 'Script'. Now change the Default Tool into C:Execute and save the icon.
For this action you may use WBMakeLink from OS4Depot just as well as it lets you do this in one go.
Effectively, you now have a (script-)file with 2 icons: one with Default Tool 'WHDload' and one with Default Tool 'C:Execute'.
OldFart
_________________ More then three levels of indigestion and you're scroomed! |
|
Status: Offline |
|
|
BooBoo
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 21:43:16
| | [ #11 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| @OldFart
Thanks Dude Basicly its for OS4 Classic when you click on a WHDload icon - WHDload is obviously 68k only and the games Bang the Hardwre so will Not run. When I click the Game Icon with WHDload as Default Tool I would like to Run my Scipt.
That would mean makeing a lot of Icons as I have a lot of Games and Makelink is giving me errors - This maybe user Error but I not sure it will work and would have to be something like MakeLink From WHDLOAD to C:Execute MyScipt
I wonder how RunInUAE redirects his files - But like the first post I think an executable in the C: folder is what its going to take?
Last edited by BooBoo on 01-Dec-2010 at 09:45 PM. Last edited by BooBoo on 01-Dec-2010 at 09:44 PM.
|
|
Status: Offline |
|
|
tonyw
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 22:19:29
| | [ #12 ] |
|
|
|
Elite Member |
Joined: 8-Mar-2003 Posts: 3240
From: Sydney (of course) | | |
|
| @zerohero
There is no such thing as "C:Execute" in OS4, Execute is an internal Shell command. So you can't make a link to it.
_________________ cheers tony
Hyperion Support Forum: http://forum.hyperion-entertainment.biz/index.php |
|
Status: Offline |
|
|
zerohero
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 22:21:20
| | [ #13 ] |
|
|
|
Team Member |
Joined: 4-May-2004 Posts: 2524
From: Uddevalla, Sweden | | |
|
| @tonyw
OK, but I didn't suggest the link, just C:Execute... Make it Execute instead then. _________________ Common sense - So rare it's almost like a super power |
|
Status: Offline |
|
|
OldFart
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 22:33:52
| | [ #14 ] |
|
|
|
Elite Member |
Joined: 12-Sep-2004 Posts: 3060
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat! | | |
|
| @BooBoo
Quote:
and would have to be something like MakeLink From WHDLOAD to C:Execute MyScipt |
I'm sorry, but this CANNOT work for two reasons: As TonyW states, Execute is an internal command, so making a link to it is impossible (my fault). The second reason is, that HAD Execute been a command, then the making of the link fails due to this part: 'to C:Execute MyScipt ', in which 'MyScript' is UNKNOWN to the MakeLink command upon which fact an error is returned to you, someting about Packets.
This leaves you only with the second option I gave you: make a directory with links to the scripts and make them have 'Execute' as Default Tool.
I'll come back to this subject later as I'll try and make you a script that does exactly this for the entire load of script files you have.
OldFart_________________ More then three levels of indigestion and you're scroomed! |
|
Status: Offline |
|
|
BooBoo
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 22:48:57
| | [ #15 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| @OldFart
Thanks for offering to help - and id be intrigued to see your Script but I dont think your familar with WHDload,JST
There is only 1 Script mine This I want run when anythin trys to run WHDload
For Example and this isnt the Script Echo "This game is WHDload installed"
WHDload is an Excutable
The Icon is only an Icon and has no Script file - Default Tool WHDload this must stay as WHDload so it can run under 68k when click the icon consists Default Tool -WHDload ToolType Game.Slave
-WHDLOAD game.slave
Heres a WHDload installed game http://www.whdownload.com/games/Pack-T-2007-01-30/Toki_v2.2_0040.zip
Using Execute etc isnt an option there must be an executable, Ive made many Script files - But creating an executable/exe for OS4 is beyond me.
I hope someone can point be in the direction of someone who could compile a basic C/E Script into a OS4 executable if possible.I would be very great full and hopefuly others would benfit as the Idea is launch 68k programs on OS4 Classic using a Reboot & Script.
I hope this isnt now going to far off topic - I belive something similar has been done with RunInUAE with I guess is an executable able to reconise WHDload as Default Tool.
WHDLOAD is an executable that uses the information in the Slave to patch the game to run form HD. Last edited by BooBoo on 01-Dec-2010 at 10:55 PM. Last edited by BooBoo on 01-Dec-2010 at 10:55 PM. Last edited by BooBoo on 01-Dec-2010 at 10:53 PM. Last edited by BooBoo on 01-Dec-2010 at 10:51 PM.
|
|
Status: Offline |
|
|
zerohero
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 22:51:33
| | [ #16 ] |
|
|
|
Team Member |
Joined: 4-May-2004 Posts: 2524
From: Uddevalla, Sweden | | |
|
| @BooBoo
So you basically just want to stop WHDLoad games from starting when you've booted into AmigaOS 4.x, and instead print some text telling you it's 3.x only? _________________ Common sense - So rare it's almost like a super power |
|
Status: Offline |
|
|
BooBoo
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 22:57:23
| | [ #17 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| @zerohero
Basicly yes it very Basic but it wont be Text that was just an example its a script that Reboots back to 68k and runs the Game. OS4 Classic -bygove I think youve almost got it Last edited by BooBoo on 01-Dec-2010 at 10:58 PM.
|
|
Status: Offline |
|
|
_Steve_
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 23:05:00
| | [ #18 ] |
|
|
|
Team Member |
Joined: 18-Oct-2002 Posts: 6808
From: UK | | |
|
| @BooBoo
That isn't going to be so simple as I suspect both OS3.x and OS4.x are on different HDs (or at least different partitions of the same drive), and assuming OS4.x works in the same manner as 3.x did, you'd have to hold down both mouse buttons upon rebooting to select the 3.x partition to boot into first.
Also given you would have to faff with the startup-sequence as well to ensure it boots your game and ensure it was restored afterwards, it just seems a little long winded rather than actually just booting 3.x in the first place to run WHD/JST installs.
I presume that RunInUAE is too slow to be of much use on a classic machine (I know how bad it was running UAE0.8.x on WarpOS/PUp). Last edited by _Steve_ on 01-Dec-2010 at 11:05 PM.
_________________ Test sig (new) |
|
Status: Offline |
|
|
BooBoo
| |
Re: Request - Simple executable to start Script Posted on 1-Dec-2010 23:12:32
| | [ #19 ] |
|
|
|
Member |
Joined: 13-May-2007 Posts: 45
From: Unknown | | |
|
| @_Steve_
Actully its very Simple thats why im suprised by the confusion - but yes your right im working with HD later ill look at possbility of RAD
Start of Startup-Sequence of primary partition
If Exists Work:Temp/Yes Rename Yes to No Execute No Else Normal Startup-Sequence
Last edited by BooBoo on 01-Dec-2010 at 11:23 PM.
|
|
Status: Offline |
|
|
mpiva
| |
Re: Request - Simple executable to start Script Posted on 2-Dec-2010 6:02:02
| | [ #20 ] |
|
|
|
Regular Member |
Joined: 3-Aug-2005 Posts: 202
From: Alberta, CAN | | |
|
| @BooBoo
Would it work to name your script "WHDLoad" and turn on the "s" protection bit so that it will run like a command? Then if anything tries to run "WHDLoad", it would run your script instead. |
|
Status: Offline |
|
|