English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 08 June 2020, 18:24   #21
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,987
Quote:
Originally Posted by bebbo View Post
The standard way:
Yes, that's the nearest approximation. But it does not work if the program is found in the DOS path.
thomas is offline  
Old 08 June 2020, 18:27   #22
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by thomas View Post
Yes, that's the nearest approximation. But it does not work if the program is found in the DOS path.

Uh, oh, forgot that option...


... then you have to add a search over all path elements...
... still feasible!

Code:
struct AssignList * al = (struct AssignList *)BADDR(cli->cli_CommandDir);
while (al) {
  ... // check progname in al->al_Lock
  al = (struct AssignList *)BADDR((BPTR)al->al_Next); // next looks like a BPTR in the path chain
}

Last edited by bebbo; 08 June 2020 at 18:41. Reason: how to search the path
bebbo 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
Config file directory paths hexaae support.WinUAE 6 24 June 2018 17:28
Limit file size directory Seiya support.WinUAE 2 19 February 2018 19:29
Executable script file/arguments shrub3056 support.Apps 1 26 July 2011 18:08
File not executable amigapd support.Apps 3 22 February 2011 17:59
File not executable ancalimon support.WinUAE 8 15 February 2008 17:18

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 18:08.

Top

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