English Amiga Board


Go Back   English Amiga Board > Other Projects > project.WHDLoad

 
 
Thread Tools
Old 22 January 2007, 21:58   #1
keropi
.
 
Join Date: Oct 2004
Location: Ioannina/Greece
Posts: 5,040
I cannot make whdload execute a command after it exits????

I must be dumb or something....

I have a command in C: called automon
that makes the parallel port to output mode so my switch can become automatic. but whdload resets this setting, so in order to go back to rtg display, I must re-run this command after whdload ends.
so I edit S:whdload.prefs and I put that: ExecuteCleanup=C:automon

but after quiting I get this message:
"The command you specified via ExecuteCleanup has failed (ReturnCode=1 DosError=0)"

entering on a cli window "c:automon" works fine....
what am I doing wrong???
keropi is offline  
Old 22 January 2007, 22:06   #2
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,020
try ExecuteCleanup=SYS:C/automon
Galahad/FLT is offline  
Old 22 January 2007, 22:07   #3
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,149
Could it be that your command does return 1 even if it works? If WHDLoad could not find the command it would likely return 5 I think.
girv is offline  
Old 22 January 2007, 22:07   #4
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
Did you check if the command indeed was NOT executed? It might just happen that this program doesn't return with a cleared errorcode (coder didn't clear register d0 upon exit) so WHDload interprets that as an error.
StingRay is offline  
Old 22 January 2007, 22:08   #5
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
Seems girv had the same idea
StingRay is offline  
Old 22 January 2007, 22:19   #6
keropi
.
 
Join Date: Oct 2004
Location: Ioannina/Greece
Posts: 5,040
so, how the hell do I make it stop that message?
also tried c:automon >NIL:
keropi is offline  
Old 22 January 2007, 22:23   #7
keropi
.
 
Join Date: Oct 2004
Location: Ioannina/Greece
Posts: 5,040
anyone cares to fix it? it is a tiny prog, automon.zip in the zone...
keropi is offline  
Old 22 January 2007, 23:07   #8
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 43
Posts: 2,351
Check the Zone keropi, this prog does the same as your automon, but clears d0 on exit.
musashi5150 is offline  
Old 22 January 2007, 23:15   #9
keropi
.
 
Join Date: Oct 2004
Location: Ioannina/Greece
Posts: 5,040
really? cool, gonna check NOW!
thanks!
keropi is offline  
Old 22 January 2007, 23:25   #10
keropi
.
 
Join Date: Oct 2004
Location: Ioannina/Greece
Posts: 5,040
checked it on my zorro amiga, it does not make the error, gonna check it also tomorrow when I put back together the csppc one, to see if it works 100% (though I think it is OK)
THANKS musashi5150
keropi is offline  
Old 22 January 2007, 23:32   #11
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 43
Posts: 2,351
You're welcome keropi Thanks should go to girv/StingRay also for diagnosing the problem
musashi5150 is offline  
Old 22 January 2007, 23:34   #12
keropi
.
 
Join Date: Oct 2004
Location: Ioannina/Greece
Posts: 5,040
I emailed wepl if he can implement this as an option on whdload.prefs... maybe it is easy and he does it? dunno....

a big THANKS to all who helped here !!!

Last edited by keropi; 22 January 2007 at 23:44.
keropi is offline  
Old 23 January 2007, 00:12   #13
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
Since all the program does is doing bset #2,$bdf200 I bet it shouldn't be much of a problem to add it to whdload.
StingRay is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute file without using execute VoltureX support.Apps 3 01 December 2011 09:59
execute a command line before launching a config for a game turrican3 request.UAE Wishlist 10 18 July 2009 12:22
Execute Command Redirection Help Ed Cruse Coders. General 2 30 September 2008 16:59
Using the command line, does it make you feel manly? DrF Nostalgia & memories 10 19 January 2008 22:43
WHDLoad Exits Smiley support.Apps 15 21 March 2005 08:03

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:40.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09017 seconds with 13 queries