Droopy's Lib ( Scripting Functions )

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Droopy's Lib ( Scripting Functions )

Post by Droopy »

Here's my new lib : Droopy's Lib

Shutdown / logoff / Reboot
Get the path where was launched
Change default path of your program
Get the program name
Search process name in memory
Runas
Block Input
Get & Set ComputerName
Get Environement variables
Get Windows / System path
Map / UnMap network drives*
Impersonalization
Get / Set INI Files
Create / Write Log files
Get / Enum / Delete / Create : Users & LocalGroups
Get / Set Files Attributes
Search Subdirectory for files with dos mask
Create path ( with all its subdirectory )
Delete path ( with all its subdirectory )
Get free space in Drive
Simple Timer

Detail

I include the Souce Code at PureBasic Directory \Examples\droopy\Source

If you want to report bug / Improvement : Contact me at Descaves@Wanadoo.fr with "PureBasic" as Object
Last edited by Droopy on Wed May 04, 2005 3:12 pm, edited 5 times in total.
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post by Tommeh »

Can you please tell us what the lib does?

Also can you please pack it with zip not exe, thanks
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I've changed my first post to add the Function List
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Droopy,

Thank you!
Your library has some handy functions.

A small request: Please change the name of the LogWrite() function.
It conflicts with the Dn_LogLib library.

Regards,
Eric
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I think it's better to delete the Dn_LogLib from your PureBasic\PureLibraries folder

Because my Lib do the same things
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

hey this lib is a nice addition for beginners.!
btw i think the best way would be to make a prefix in front of all commands.
like Dl_command()

dl = droopyLibrary
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Droopy wrote:I think it's better to delete the Dn_LogLib from your PureBasic\PureLibraries folder

Because my Lib do the same things
That's what I did, but the Dn_LogLib does have some convenient date/time stamp and append options when the log file is opened. Would you consider adding these options?

Regards,
Eric
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Heh, I looked at the topic and saw "Script functions". I thought you meant, scripting functions. heh. Ah well, this IS a nice library!
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

"LogWrite" always append text to the log file
If you don't want to append text, first delete the log file :wink:

"LogWrite" write time like DD:MM:YY HH:MM:SS + TextYouWant

Don't you think it's enough for log purpose ?

I changed the Topic to Scripting function : Sorry for my bad english
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Droopy,

Thanks for the explanation of you library's logging functions. Yes, I think that's sufficient for most logging needs.
In fact, I just removed both of my user libraries that conflicted with yours, since you have many more useful functions.

Thanks,
Eric
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

Hello,

I can post on french forum, but why not here... :-)
Good and usefull lib, thank. About DNLogLib, it doesn't work for me... Linker Error.
I'm waiting for the next version of your lib... the todo list interrest me.
Thanks. :cool:
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
Blade
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Aug 06, 2003 2:49 pm
Location: Venice - Italy, Japan when possible.
Contact:

Post by Blade »

thefool wrote:btw i think the best way would be to make a prefix in front of all commands.
like Dl_command()
Agree, UserLibraries should always use a prefix to avoid conflicts with other UserLibs and future official "Fred" new commands...
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Very nice!

- np
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I don't like prefix, for example with prefix the Not function will be : Dl_Not() :?

It's too long for me !! I prefer Not() :wink:

If a function conflict with official new command, I'll delete the function.

Or you can do this by yourself with TailBite, I provide the source code ... :D
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

Hello,

OK u provide the sources, but it is too long to recompil the lib when u make a new version. And if someone make a code in the forum which use your lib, there will be unknown commands because of the modifications.
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
Post Reply