Page 1 of 2

Droopy's Lib ( Scripting Functions )

Posted: Sun May 01, 2005 11:44 pm
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

Posted: Mon May 02, 2005 3:36 am
by Tommeh
Can you please tell us what the lib does?

Also can you please pack it with zip not exe, thanks

Posted: Mon May 02, 2005 8:08 am
by Droopy
I've changed my first post to add the Function List

Posted: Mon May 02, 2005 1:55 pm
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

Posted: Mon May 02, 2005 2:56 pm
by Droopy
I think it's better to delete the Dn_LogLib from your PureBasic\PureLibraries folder

Because my Lib do the same things

Posted: Mon May 02, 2005 3:02 pm
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

Posted: Mon May 02, 2005 3:29 pm
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

Posted: Mon May 02, 2005 4:23 pm
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!

Posted: Mon May 02, 2005 6:12 pm
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

Posted: Mon May 02, 2005 6:46 pm
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

Posted: Mon May 02, 2005 6:51 pm
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:

Posted: Mon May 02, 2005 10:57 pm
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...

Posted: Tue May 03, 2005 1:25 am
by NoahPhense
Very nice!

- np

Posted: Tue May 03, 2005 8:11 am
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

Posted: Tue May 03, 2005 9:47 am
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.