Content Type
Profiles
Forums
Events
Everything posted by gunsmokingman
-
Hey, Scripting Guys. How Can I Determine the Local Path to a Shared Folder? This is using VBS script there are more script there that may help you do what you need.
-
RunOnceEx not working!
gunsmokingman replied to Mondoedox's topic in Unattended Windows 2000/XP/2003
If you have added IE7 to your install then that breaks the runonce function with this file iernonce.dll I just used the iernonce.dll that comes with IE6 to fix this problem. Here is a link to another thread where I posted a fix for this problem. Thread -
How to get a user's SID?
gunsmokingman replied to Maelstorm's topic in Unattended Windows 2000/XP/2003
I do not know if this will help you but here a script that list all the SID and the User Name, this is set to run on the Local Machine. Notes If you want a good tool to help you generate Code for WMI then use this Microsoft App to help you Wmi Code Creator -
How to Manually Schedule Chkdsk at Startup?
gunsmokingman replied to spacesurfer's topic in Windows XP
Have you tried this cmd This is what Vista displays with the above cmd -
How to uninstall Quicktime 6? - using a script
gunsmokingman replied to Jason P's topic in Windows XP
You could try a script like this. -
Here a quick Example of how you could do what you want it to.
-
I do not know if this is what you wanted but read this Link
-
How to expand multiple files?
gunsmokingman replied to r3al1ty's topic in Unattended Windows 2000/XP/2003
Sorry for bringing up a old post, but I notice that I have had over 600 dl of my Makecab, I would like to Thank everyone who has downloaded this. So I have updated that app and have added a Expand cmd to it. So you can now you can just extract MakeCab files also with this app. Thanks Gunsmokingman Vb.net need to be installed Updated Application Source Code -
Need help with a (simple) hta
gunsmokingman replied to PLloyd's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here is a Hta that list all the process running, you can kill any process that it lists. This refreshen itself every 300 of a second, so it always is updating it display. Save As ListProcess.hta -
Batch install Windows Updates
gunsmokingman replied to doenau's topic in Unattended Windows 2000/XP/2003
This line runs the script the use of Chr(34) is to add quotes to take out spaces, now I have no way of testing this on any other langauge other then english. The other thing to note is that all the services needed for updates can not be disable as this uses that object. Runs The HTA This returns the path to the user desktop, it might be different for other langauges. geezery, I will change the desktop varible I use to what you posted, thanks. -
Batch install Windows Updates
gunsmokingman replied to doenau's topic in Unattended Windows 2000/XP/2003
I could modified the script to install the updates, that is not a problem. I wrote it to intergrate the updates into a UaCD or UaDVD. The advantage my script has over yours tool. It can be ran from anywhere on the computer. It does not require all the updates to be in one folder as it searches all folders on the hard drives looking for the KB's. If I wanted to install the updates then the script could be modified to run against a machine on the network. Here is a script that produces a HTA that will list all installed updates and ones that are not installed, it produces a HTA for you to read. I will in later versions of this script have it download and install the updates silent. This is a SFX that acts like a exe, so the script gets deleted, if you want to read the source code just extract the script to read it. Change the varible for the desktop, to what geezery posted. Rpt_Updates.exe -
I use the default defrag on Vista works fine I havnt had any problems using it. This is the script I use, it clears the recent folder, user temp then defrag all drives. Save as SysMaintence.vbs
-
Add Custom Shortcut to Unattended Install
gunsmokingman replied to fatman01's topic in Unattended Windows 2000/XP/2003
Have you thought of trying a VBS Script to make the shortcut on The AllUserDesktop. This will make a Shortcut on The AlllUserDesktop to Notepad. Save As SC_AllUserDeskTop.vbs If you wanted this to run showing a cmd window Save As Comspec_SCAllUDesk.vbs -
Need help with CleanUp.cmd
gunsmokingman replied to NOTS3W's topic in Unattended Windows 2000/XP/2003
Here is a VBS script that will creare a shortcut of Calc in the QuickLaunch Folder. Save as Add_Calc_QL.vbs This is for those who want to use a cmd promt Save as Add_Calc_QL.cmd -
If you want to change the name of what on the Boot menu then read this Thread Here is a HTA, that I made into a SFX file so it act like a exe. This will change what appears on the Boot Menu. ChangeVistaBoot.exe
-
Batch install Windows Updates
gunsmokingman replied to doenau's topic in Unattended Windows 2000/XP/2003
I have wrote a VBS Script that ment to add your Updates to your XPCD. All you need is a XPCD directory and the Updates to add to the XPCD. The Updates can be in any place on the local hard drive or partitions, the script does not need to be in the same folder as the updates. -
Excel VBscript question
gunsmokingman replied to fizban2's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here use this Link it has a lot of VBS script templates for using VBS Script and Excel. -
Embedded Windows Media Player ?
gunsmokingman replied to s3pHiX's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Try this Link to see if it will help you. -
It the Quotes it not going to read the line right. Maybe try it this way, I might be wrong as Cmd Promt is not my best langauge
-
Create shortcut to "My Computer" via Command-line?
gunsmokingman replied to beaker's topic in Unattended Windows 2000/XP/2003
I do not know if this is what you wanted, but here is a VBS script that creates a shortcut on your desktop that opens My Computer. Save As Link_MyComputer.vbs -
VBS objShell.run trouble
gunsmokingman replied to Deman's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
In my example I did add the Chr(34) for the quotes.