Jump to content

gunsmokingman

Super Moderator
  • Posts

    2,296
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by gunsmokingman

  1. Is the number 70 in the account.txt if yes then something like this might help Hope this is what you wanted.
  2. I believe they are to be renamed for the Svcpack.inf Here is another way to rename them using VBS script. I have added comments to the script so it bigger then what needed. Save as RenameKb.vbs Without Comments Save as RenameKb.vbs
  3. Sorry for the length of the script, this is what it does 1:\ Creates Folder Windir\Logs\Service 2:\ It produces a text file named Windir\Logs\Service\ComputerName_UserName.txt 3:\ List all the services and there status. Uncomment the areas needed to use 4:\ Start any service that not running, 5:\ Set how you want it the service to start I thought this might be a better way to do what you want because you are going to run it as a log on script so you will be able to tell who is changing what. You will have to make some changes to the script, as I only tested this so there was no run time errors. Save As ServiceStartLog.vbs Desided to add a script that will just turn on any service that is turned off. I have tested this and got no run time errors. Save As ServiceStart.vbs
  4. Here read this thread there are a couple of different examples of scripting what you want. Thread
  5. Description: Hta that produces a Vbs Script called DeleteIt.vbs. This is places in the user SendTo Folder. Uses Wscript.arguments to pass the path of the files or folder to be deleted. This is a perminent delete and does not use the Recyle Bin or System Volume Information. Hta also has a Remove Button to remove the DeleteIt.vbs from the user SendTo Folder. Programming Language: HTML, JS script, Vbs Script Usage: I wrote the original script because I wanted a fast way to delete things. Note: There is a limit to how many file or folders can be deleted, 24 items is it limits at one time. This is a SFX file so it acts like a exe Edit Since I made this on Vista it works fine, on XP it did not work properly, that been fixed. DeleteThis.exe
  6. Here try this VBS script. It will Disable SystemRestore wait for a minute then Enable SystemRestore Save As Stop_Start_SR.vbs
  7. This is a example of getting just the folder name and copy a file using the folder name. Here is a link for making a dialogbox and selecting multiple files for copy. This will only work on XP machine and no other OS. Hey, Scripting Guy!
  8. If it was for Vista then it would easy. Windows Server 2003, Windows 2000, Windows NT 4.0, Windows XP, and Windows Me/98/95. This property is not available. Example for Vista only There is a possible way of seeing if it running in 32 or 64 using the Processor class. This displayed that my OS is running the CPU in 32 bit and shows I have a 64 bit cpu.
  9. Goto Google and type in the word Unlocker, this is a application that was made for deleteting files and folders that are locked up, by other programs.
  10. Here is the way to do it using a VBS script. I tested this using a folder called New.Folder Save As CheckFolder.vbs
  11. I was bored so I made this vbs script that uses the Tree cmd. All you have to do is Drag and Drop a folder on the script. 1:\ Create a text file call FOLDER_DRAP_DROP_NAME_Listdir.txt and adds the Tree info to it. The Text File is made in the same folder where this script is located. 2:\ Runs the Tree in cmd promt 3:\ Since this uses VBS Drag and Drop you can place up to 24 folders on this script at one time. It then produces a Text File for each folder Save As Tree.vbs
  12. Here is the VBS script inside of the cmd it passes the OS Name back to the original cmd. Save as OsName.cmd
  13. Try this VBS script Save As OsName.vbs
  14. Change This To This
  15. Here is another way of doing what you want. I have tested this so there is no run time errors, you will have to add the path and swithes to install your apps. The input is not case sensitive.
  16. I have been accepted into the XP SP3 beta, I am going to install it this weekend. I intergrated it into my XP that went fine. It nice not adding the 80 or so updates to my CD.
  17. Here is a VBS script that will delete most of the things in the Temp folder. I have only tested this on Vista and do not know how it will work on XP. Save as CleanTemp.vbs
  18. Thank you for the idea I hope you like what it produces now. It also GSM and not GSH I appreciate the significant effort you've put into this tool, but maybe I could ask for a bit more? Let me explain. I am developing a hardware agnostic image for use in the corp environment. We have a lot of different flavors of hardware, and it would be very useful to have a script like this that could be executed from cmdlines / guirunonce during minisetup or first boot to autodetect the PC Manufacturer, model, serial #, & BIOS rev level, and then output it to winnt/system32 to overwrite the default oeminfo.ini file. I'd like to be able to do this with no manual interaction. Perhaps you could modularize your script so that users could invoke only the parts of the script that they need? That way, I could get what I'm asking for, omit the extraneous stuff i'm not interested in, and i'd think this would make it easier for you add / remove functionality to your script without having to do major code revisions? I'd do this myself, but my scripting skills are remedial at best. Thanks in advance for any help you can provide. 1:\ I am not sure that Wmi works at the cmdline part of a install. 2:\ This script produces a new oeminfo.ini. If you want I could make you a custom script to produce what you want. Post what you need for the oeminfo, I will then redo the script with what you need. Edit I have made some changes to the script so here is the updated SFX Updated MkOem_V6
  19. I do not know if this is what you want. This cmd script does 1:\ Makes a VBS script that uses the time function 2:\ Creates a temp SetTime.cmd that passes the VBS Time to the original cmd. Save As Time.cmd
  20. I do not know if this will help but here is a link with a script and it explains how it works. How Can I Retrieve Disk Quota Information for a Single User?
  21. 1:\ Make sure the security update with the new Explorer is installed 2:\ Move the new Explorer to a folder, I use %SystemDrive%\Shell 3:\ Make the changes to Explorer in %SystemDrive%\Shell 4:\ Replace the Update explorer in %SystemDrive%\Windows with the one in %SystemDrive%\Shell 5:\ Reboot computer to see if your Explorer is used This should in theory prevent the update that changes Explorer, from being installed again.
  22. How about a VBS Script that does the same thing. Here is a example script for you to try. Save As ActiveDrives.vbs
  23. I am not the best at Cmd Promt scripts so I wrote your as a VBS script. I have not tested this script, but it should do what you need. Save As CleanUp.vbs
  24. Okay...whats the correct DEL command then? Are you using the account that was listed in the image you posted? If so then use a different varible for that folder. Try this in your code
×
×
  • Create New...