PureBasic Forum https://www.purebasic.fr/english/ |
|
Tip: Tiny code to find a file on disk https://www.purebasic.fr/english/viewtopic.php?f=12&t=3659 |
Page 1 of 1 |
Author: | BackupUser [ Wed Jan 16, 2002 10:28 am ] |
Post subject: | Tip: Tiny code to find a file on disk |
Code updated For 5.20+ Restored from previous forum. Originally posted by PB. Here's some short code to find a file on any disk or hard drive. Code: path$=Space(255) : r=SearchTreeForFile_("c:\","FileToFind",path$) If r=0 MessageRequester("Error","File not found...",0) Else MessageRequester("Location",path$,0) EndIf PB - Registered PureBasic Coder Edited by - PB on 18 January 2002 00:51:52 |
Author: | BackupUser [ Thu Jan 17, 2002 2:04 am ] |
Post subject: | |
Restored from previous forum. Originally posted by Steve. Short and sweet. And Works as advertised. Thanks Steve - Reg. PB user |
Author: | BackupUser [ Thu Jan 17, 2002 3:32 am ] |
Post subject: | |
Restored from previous forum. Originally posted by PB. Quote: Short and sweet. Yep, using the API is a wonderful way to code in PureBasic. Of my apps, I'd say about 40% of their code are API routines and not actually BASIC at all... PB - Registered PureBasic Coder Edited by - PB on 17 January 2002 03:34:07 |
Author: | BackupUser [ Thu Jan 17, 2002 7:48 am ] |
Post subject: | |
Restored from previous forum. Originally posted by Rings. Quote: Of my apps, I'd say about 40% of their code are API routines and not actually BASIC at all... Oh yes API solve most of the problems.But there are new Problems if you want compile to Linux(If Not , forget my comment ).Thats wh i want most of the API's in Basic-Commands to port it between OS's . Siggi |
Author: | BackupUser [ Thu Jan 17, 2002 9:38 am ] |
Post subject: | |
Restored from previous forum. Originally posted by PB. Quote: Oh yes API solve most of the problems.But there are new Problems if you want compile to Linux(If Not , forget my comment ).Thats wh i want most of the API's in Basic-Commands to port it between OS's . I know what you mean, but like you said: I don't use Linux/Amiga so it's of no concern to me. ![]() PB - Registered PureBasic Coder |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |