Content Type
Profiles
Forums
Events
Everything posted by gunsmokingman
-
D:\ partition related command
gunsmokingman replied to darksimoon's topic in Unattended Windows 2000/XP/2003
Here is a template for you to use. You will have to add what ever you need to the function called Work -
Auto-incrementation of name thanks to IP adress
gunsmokingman replied to eleve's topic in Unattended Windows 2000/XP/2003
Using your 2 example plus I added a Local Address to confirmed it working. How this script works is as follows 1:\ It starts with a Array that holds all your ip address 2:\ It Loops threw the Array to ping the computers 3:\ If the ping returns false nothing happens it continues threw the Array 4:\ If the ping returns true it the uses a Case Select to see what ip responded and sets the varible called NameComputer. I have not added any scripting to change the name of the computer. You will have to add the ip`s to the Array Called Computer. This script will only work ON XP and UP Save As Ping.vbs -
Copy and Paste what I posted into notepad. Then Open the save dialog and select all files and save it as Sp2_Install.vbs.
-
That a normal reading. What you want to do is Open Explorer select D then right click and select properties to show the size and the amount of free space.
-
Have you tried to install SP2 using the /n switch this tells it not to back up files for the uninstall. Here is a list of switches that can be used on SP2 Here is a vbs file for you to try to install SP2, place this file in the same folder as sp2. Save As Sp2_Install.vbs
-
Try a app called unlocker to see if that can delete the file.
-
I have made you a Hta that will process a text file to fill the ListBox. 1:\ Make a text file, I used Printers.txt as a example, you can included a full path such as "C:\Some_Folder\Sub_Folder\Printers.txt" 2:\ The text inside must be in this format, I use the - this to break up the line in the script. Save As SelectPrinters.hta
-
Here a suggestion about the Printer stuff you should use a ListBox With All the paths and names as values. This would save any user errors for typing in the address and name. This HTA just adds a 100 things to a Listbox it and when you select the item in the listbox it returns the value of the listbox selected item. The Listbox could also use a textfile to load it information. Here is a example of what I mean. Save As Example_LoadListBos.hta
-
Finding files
gunsmokingman replied to bbbngowc's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here is a VBS script that will do what you want. You will have to change these to entries to match the folders you want to use Save As FileTimeCheck.vbs -
Maybe something like this I also made a HTA that does both Makecab and Expand Files. MakeCab Thread
-
detecting a keystroke?
gunsmokingman replied to a topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Some thing like this Save As SendKeyDemo.vbs -
Small Javascript Question
gunsmokingman replied to colemancb's topic in Web Development (HTML, Java, PHP, ASP, XML, etc.)
Glad I could help and your welcome. -
Small Javascript Question
gunsmokingman replied to colemancb's topic in Web Development (HTML, Java, PHP, ASP, XML, etc.)
I could not get the code you posted to work. So I re wrote a new one for you to try. -
Small Javascript Question
gunsmokingman replied to colemancb's topic in Web Development (HTML, Java, PHP, ASP, XML, etc.)
I do not know if this is what you wanted but here is what it does. 1\ Text box to add text 2\ Submit button 3\ A Div that set to be hidden If you press the submit button and the text box is empty it will say text needed message If the text box has text in it and you press the submit button below the text box what you have just type in will appear. Also the button text changes from submit to clear Save As Demo_ShowText.html -
Installing pre-downloaded patches
gunsmokingman replied to programmerbob's topic in Unattended Windows 2000/XP/2003
Just place this script in the same folder as the Updates it will then install the updates. Save As InstallKb.vbs -
VBscript
gunsmokingman replied to captainjack913's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here is a link to a article on How Can I Set the Default Printer Based on the IP Address of the Computer This should give you a good start to what you want to do. Hey, Scripting Guy! Here is a page with more refrences on scripting for printers. Hey, Scripting Guy Printer Script -
What is the directory location(Path) of the desktop in Vista?
gunsmokingman replied to foolios's topic in Windows Vista
Try this %UserProfile%\Desktop -
Here is a vbs script to turn off the Firewall, and it should unistall the games, thanks to geek for providing the code for the unistall. I could not figure out how to disable the security center with a script. Save As Configure.vbs