|
|
![]()
VBScript NetLogon- WORKS WITH Win95/98/ME/NT/2000/XP!!!
What: logon.vbs is a VB Script that will perform a number of tasks when a computer logs on your network. These tasks are:
Why: Scripts are very useful for automating tasks. If you're the administrator of a heterogenous Windows network, i.e. one that has every Windows version installed, from Win95 to Win2000, then you need all the help you can get, in order to keep your network computers under control.
Prerequisites: Windows Scripting Engine. Windows 95 computers will need the update to version 5.5.
Code: Each of the tasks is a separate function and code snippet in its own right! You have to get this script if you're interested in VBScript.
Installation: For Windows2000 computers you just need to save the script in a shared folder (\\servername\netlogon is a good choice) and add it to the User/Machine configuration of the Domain Group Policy (or Site Group Policy if you're in a multidomain environment). Alternatively, remove the If strOS="Windows_NT" condition from the autoinstallation of the script.
If you have any second thoughts about running scripts I suggest opening it with Notepad first |
|
What: Ver.vbs is a VB Script that will return the Windows Version (Major.Minor.Build) and whether it's an English or non-English Windows version
Why: Scripts are very useful for automating tasks. A very good example is a logon script that will automatically install updates (Windows/Office etc.). But in order to choose the correct update one must know the Windows version and Language! Unfortunately the %OS% system variable of the SHELL object will only work for WindowsNT/2000/XP and not Win9x! As for the language... This script will work on any Windows version and correctly return the version AND whether the installation language is English or non-English.
Prerequisites: Windows Scripting Engine. 99% of all Windows have got it already installed or is later installed by Internet Explorer.
Code: Not much, it's a fairly straightforward little script! Obviously the MsgBox shown in the screenshot is for testing purposes only. The point is to use the strLanguage and strVersion variables!
If you have any second thoughts about running scripts I suggest opening it in Notepad first |
Let me see
a screenshot first |
What: Backup is a VB6 application that let's you pick directories of your hardrive and ANY network drive (doesn't have to be mapped). All files in these directories are then compressed and the compressed file is saved to a local directory of your choice.
Why: When administrating a network you are continuously faced with the same problem: Why should I always pick the same directories over a network to backup? Indeed, even commercial programs only allow you to backup directories from mapped network drives. If you're at home with two PCs that's no problem, but at a >10PC network it can get a little bit frustrating (trust me). Plus the added scripting feature in version 2.1 gives you the ability to schedule the execution so that the application runs even if you're not around.
Prerequisites: Backup uses a compression program called WinRAR which you can download from RARSoft. This application is FAR better than WinZip in compression ratios although it does lack behind in the interface. If you are an intermediate or experience user it is a must-have tool.
Code: Besides being a useful tool this VB application includes:
Version 2.1
Whats new: Autostart script and persistent options (through an INI
file)
Why: Who wants to take a backup while s/he is working? Why not take the backup at night when the office is closed? Moreover, if you are using it over a network, you also have to take into consideration the other users (the secretary who's writing that oh-so-urgent letter), and of course the network traffic that will significantly increase.
For a sneak preview of the autoscript feature click
here
Small bug with the downloads has now been corrected thanks to Giuliano Ferretti
Version 2.0.0 (beta)
Whats new: Where should I start? Better make it a bulleted list...
Here goes:
Why: Because it contains 167KB of BAS and CLS modules that perform dozens if not hundred of functions (not all implemented but ALL documented). Because Brad's code and my additions make this a powerful tool (I use it at a multidomain Windows2000 Active Directory environment with more than 100PCs!).
Prerequisites: The API calls have been written in Windows98. Version 1 was developed and thoroughly tested in Windows98 and WindowsNT. I've developed version 2.0 in WindowsME and have tested it (not thoroughly) in Windows2000. If you find any incompatibilities/bugs, please report them by emailing me. The SETUP version includes WinRAR.exe (trial version). This version seems to disagree with WindowsME when creating SFX archives (.exe), though they still work if you open them from within the WinRAR application. So, basically if you have WinME don't use the SFX option (no point).
Code: You have to see it to believe it...Does subclassing and event-overriding say anything to you? Even I can't understand half of what the code does... I know I sound like a traveling salesman... but I'm not... And I don't charge anything ;-)
Version 1.2
Whats new: Very little apart from that there is a new Registry module
that searches for the WinRAR.exe file. This way you don't have to have a copy
in the application directory, plus you get to see how you can check for registered
application paths using VB code. You can also run WinRAR as an external application
too.
Why: Well, because it fixes a few minor bugs (plus the major with the WinRAR path) and because the code is fairly comprehensible even at an intermediate level.
|
Let me
see a screenshot first, |
BUG
WARNING: In WindowsME (VB environment) if you stop the code while
frmMain is open, Visual Basic will crash!!! In frmMain_Unload
you'll see that several objects are released when you close the form and, in
effect, exit the application. If you use the Stop button to terminate
execution then this code is not executed, causing VB to crash. This does
not appear under Windows 2000.
The only solution I could find was... not to press Stop for whatever
reason. I exit the running application by closing the main window. Pause
or CTRL+Break does not cause any problems (provided you don't press Stop
after debugging).
Obviously this has no effect to the compiled EXE
If you try this program under Windows95 or NT please send me some feedback.
What: An UNBELIEVABLY small application that utilises several API calls to capture the screen in bitmap (*.bmp) form. The bitmap can be displayed, printed, saved
Why: I was just cleaning out a ZIP tape when I came across it. I have not written this code and it had NO developer notes. If you know who has written it please send me an email and I'll make sure that his/her name are added both to the code and to this page. The code is EXCELLENT (did I say that again?)
Prerequisites: The runtime libraries.
Code:
|
Let me
see a screenshot first |
What: A Graphical User Interface that uses the NET SEND command to send messages via the Windows Messaging System. It can send a single message to multiple users, has the ability to store and retrieve recipients and messages and store a custom signature that you can attach to your messages.
Why: After searching the Net for many hours for a GUI to send messages via a Windows NT/2000 machine I decided I've had enough of people asking for money for small apps or for GUIs that were nothing but a single form that could send a message to a single person. So I decided to create one myself!
Prerequisites: The runtime libraries. Windows NT/2000
Code: A lot of stuff here as well:
What: Created "upon request" from ExpertCentral this is a utility that scans drives/directories and makes a list of all (or specific) files together with their location and size. This list can be exported to a text file for later edit/use or directly to an HTML page (better formatting)
Why: How many times didn't you want to have a printable list of all your jpg images or Word documents together with their location and sizes? I rest my case!
Prerequisites: The runtime libraries. Other than that there is a SETUP.ZIP file that includes all the components used by the application. The only one missing the msvbvm60.dll which you should download from the Microsoft site
Code: As I mentioned this is an application that was requested several times and incorporates:
(includes all controls in case you're missing some) |
What: CD-Cover Creator is a mixed VB6, VB for Applications tool that allows you to select a directory and retrieve all folder and subfolders herein, with any files in them and save this structure to a text file. Using a MS Word DOT template you can import this structure to a Word document. There, together with two more pages you have a powerful CD-Cover creation utility.
Why: Have you tried to find a good CD-Cover utility? Everything out there is either primitive (this includes all CD-Copier applications' Cover makers), or has a price tag.
Prerequisites: You need MS Word 2000 (although it may work with MS Word 97). Also read the readme.txt file in the archive.
Code: This is more than a useful tool. To retrieve the directory structure a recursive algorithm is used (developed by oigres). If you think that's simple, try and do it for yourself (I know I tried!). The interface is very simple (euphemism for primitive). Additionally, in a later version the whole procedure should be automated, i.e. the VB application should open Word and use the template by itself without any user intervention besides pressing a button.
What: This is an application with two purposes. The first is to show how you can make a screen saver from VB. The second is how fractal algorithms (transformations) work These were translated from a Java algorithm by James Henstridge .
Why: Because creating screensavers with VB is EASY if you have the appropriate API calls!
Prerequisites: None
Code: Again some useful examples of:
|
Let me
see a screenshot first |
What: Create an URL shortcut at your Desktop or Favourites folder. The code of this project mainly aims at showing how you can access these special folders (Desktop&Favourites) using API calls. That's because the path to these folders can vary from PC to PC (e.g. in WinNT it is C:\WinNT\Profiles\someuser\Desktop).
Why: Because sometimes you need to find WHERE these special folders are.
Prerequisites: None
Code: Again some useful examples of:
I, Yiannis Papadopoulos, cannot be held accountable, in any way, for any damages or loss, directly or indirectly occurring from the use of any code downloaded from this site.
All code here was virus-free at submitting. However, I cannot be held accountable if someone breaks into the hosting server and alters the code. If in doubt send me an email and we can compare your download's date/size.
Appropriate reference was given to any code snippets that were not developed by me. I am publishing these snippets in faith that I comply with the developers' wishes. If you have any problem, or if any of the code is not in public domain, please contact me and I will remove it immediately.
These applications and code snippets are FREEWARE. You can use them, publish them, alter them at will. However, mention of the original developer/developers will be appreciated.
If you have any objections to these terms, please do NOT download and/or execute my applications. By downloading/using them you have read, understood and agreed with the terms stated above.
Any feedback/additions to the code will be appreciated. You can contact me by email at info@yiapap.com