Jump to content

gunsmokingman

Super Moderator
  • Posts

    2,296
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by gunsmokingman

  1. Here is a template for you to use. You will have to add what ever you need to the function called Work
  2. 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
  3. Copy and Paste what I posted into notepad. Then Open the save dialog and select all files and save it as Sp2_Install.vbs.
  4. 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.
  5. 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
  6. Try a app called unlocker to see if that can delete the file.
  7. 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
  8. Some thing like this maybe Save as ServerNumber.hta
  9. 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
  10. 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
  11. I made a HTA that does what you want Gsm_Rename.exe
  12. Maybe something like this I also made a HTA that does both Makecab and Expand Files. MakeCab Thread
  13. Cmd Promt is not my best langauge, but to do what you want would be simple in VBS script. Save As Demo.vbs
  14. gunsmokingman, I just would like to know if there is a reason why you always use DIM when there is no data types in VBScripts. IMHO, they are useless but why you use them anyway ? It consider good scripting, from all I have read.
  15. Here is another script that will do what you want. All you have to do is drag and drop a folder on to the script. Save As RenameFolder.vbs
  16. Some thing like this Save As SendKeyDemo.vbs
  17. Try this script in a test, I have tested it on my computer, and it works. I have no network so you will have to modified the top part of the script too get it to work on a network. Save As ReplaceFile.vbs
  18. Glad I could help and your welcome.
  19. I could not get the code you posted to work. So I re wrote a new one for you to try.
  20. 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
  21. Just place this script in the same folder as the Updates it will then install the updates. Save As InstallKb.vbs
  22. 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
  23. Try this %UserProfile%\Desktop
  24. 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
×
×
  • Create New...