Content Type
Profiles
Forums
Events
Everything posted by gunsmokingman
-
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
-
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
-
Here read this thread there are a couple of different examples of scripting what you want. Thread
-
Copying shortcuts to all users desktop with startup script
gunsmokingman replied to laptopC's topic in Windows XP
Try this -
Code Repository
gunsmokingman replied to Gouki's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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 -
Here try this VBS script. It will Disable SystemRestore wait for a minute then Enable SystemRestore Save As Stop_Start_SR.vbs
-
Rename file using folder name
gunsmokingman replied to jmpadams's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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! -
Check for OS Version in a script
gunsmokingman replied to midiboy's topic in Unattended Windows 2000/XP/2003
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. -
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.
-
batch programming
gunsmokingman replied to ronmanp's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here is the way to do it using a VBS script. I tested this using a folder called New.Folder Save As CheckFolder.vbs -
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
-
Check for OS Version in a script
gunsmokingman replied to midiboy's topic in Unattended Windows 2000/XP/2003
Here is the VBS script inside of the cmd it passes the OS Name back to the original cmd. Save as OsName.cmd -
Check for OS Version in a script
gunsmokingman replied to midiboy's topic in Unattended Windows 2000/XP/2003
Try this VBS script Save As OsName.vbs -
Change This To This
-
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.
-
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.
-
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
-
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
-
setting time with batch file
gunsmokingman replied to cumminbk's topic in Unattended Windows 2000/XP/2003
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 -
2003 R2 - Disk Quotas
gunsmokingman replied to ldoodle's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
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? -
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.
-
Picking Up Drives In VB
gunsmokingman replied to PityOnU's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
How about a VBS Script that does the same thing. Here is a example script for you to try. Save As ActiveDrives.vbs -
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
-
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