Content Type
Profiles
Forums
Events
Everything posted by gunsmokingman
-
Simple computer Model Script
gunsmokingman replied to fizban2's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Try this script I change the querry to look for the manufacture -
Simple computer Model Script
gunsmokingman replied to fizban2's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Try the script this way first to see what comes back this will give you what the correct needed for the bottom script. Then try the scrip this way with the correct string I left what the string that was return on my computer from the top script this script below did return the strModel varible -
I have a HTA run just after my RunOnce has been ran and have installed things like winrar etc at that point. Here is a re edit I have added a button to each menu that runs all the items on each menu Save As Template_UaR1Menu_V2.hta
-
Here is a template HTA that has 3 drop menu and 6 items on each drop menu. This uses both Jscript and VBS script it only has a a meesage box that confirms the checkbox has been checked. This is not active it there if you want to add your app to it. Save As Template_UaR1Menu_V1.hta
-
VBS Drop then Copy
gunsmokingman replied to gunsmokingman's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I can get it to copy to 3 different spots that not the problem. What it needs to do is 1:\ Ping the server to make sure it online 2:\ Copy the file to the server if it online. -
Here is a VBS script that will defrag all the local Hard Drives. Save As DefragDrives.vbs
-
Bunch of Questions to Increment my XPCD
gunsmokingman replied to gugutz's topic in Unattended Windows 2000/XP/2003
When you use the Assoc the file should open with what ever app is associated with the extention. EG Assoc zzt=Winamp media file, will cause winamp to open any files with zzt extention -
Bunch of Questions to Increment my XPCD
gunsmokingman replied to gugutz's topic in Unattended Windows 2000/XP/2003
Use the Assoc cmd to associate the Fire Fox extentionsExample Of Assoc using a made up file type Specifies the file extension to associate the file type with Specifies the file type to associate with the file extension This will allow Notepad.exe to open the file with a extention of zzt. To remove -
You will have to add the computer name on the network This has no checks to see if the computer is active on the network. But it will add some one to the Administators Groups. Save As AddToAdmin.vbs This has no network check but I added a password box. 1:\ Checks to see if there a password 2:\ Checks Length of password The script will not do anything until a Six digit password has been filled in. 3:\ This will quit if after 3 times there is no password detected. Save As AddAdminAndPassword.vbs Or you could look at this HTA I made and change it to suit your needs. HTA Add User Thread Link To DL SFX HTA
-
VBS Drop then Copy
gunsmokingman replied to gunsmokingman's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I will see what I can do about that. -
set filetypes with the registry
gunsmokingman replied to cumminbk's topic in Unattended Windows 2000/XP/2003
You could also try the Assoc.exe using cmd promt Cmd to associate mp3 with winamp Here is a VBS script that demo the assoc 1:\ It run the assoc cmd on this made up extention .zzt 2:\ Checks for a file called Demo_ZZT.zzt 3:\ If it not there then it makes the file 4:\ Run the file 5:\ Removes the assco from the zzt extention and deletes the file Save As Demo_Assoc.vbs -
Expand to file size (%~zI) doesn't work in XP
gunsmokingman replied to spacesurfer's topic in Unattended Windows 2000/XP/2003
I found what was causing the problem this line now makes it worked I did not notice there was no space between the SETVARS and IF This was causing the error. When I pasted the original code it was 1 very long line -
Expand to file size (%~zI) doesn't work in XP
gunsmokingman replied to spacesurfer's topic in Unattended Windows 2000/XP/2003
I tested Yzöwl script on XP and it work but on Vista I get this Here is a VBS script that only checks the harddrives for the 2 files. This worked on Both XP and Vista. Save As Check_BootIni_Ntldr.vbs -
[Question]how to remove one service from services?
gunsmokingman replied to Woomera's topic in Windows XP
This will remove any service from Windows, use caution with it. srvinstw.exe -
How to use Choice.com in Unattended Setup?
gunsmokingman replied to spacesurfer's topic in Unattended Windows 2000/XP/2003
Here is a way to use a batch with a menu selection -
VbScript RegExp Question
gunsmokingman replied to wolfh3art's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You could use a inStr to filter out what you want Example Filter Out One String Element Save As InstrDemo_1.vbs Example Filter Out Two String Element Save As InstrDemo_2.vbs -
Post install Restart Yes/No box
gunsmokingman replied to kof94's topic in Unattended Windows 2000/XP/2003
That would be up to the individual person using this. If there is no name to get all it will produce is a blank spot above the Would you like to Reboot the Computer now? This was just a demo to show that if you removed the VBS suppport the script inside the HTA would fail. -
Post install Restart Yes/No box
gunsmokingman replied to kof94's topic in Unattended Windows 2000/XP/2003
The original poster did not indicate if he removed anything at all with nLite, and not all members use nLite. If you removed VBS support then you would not be able to run some thing like this. Save As YesNoReboot.Hta -
This is from my letter from Microsoft
-
Shows how much you know about script writing, there are only 2 lines that rename the files 1:\ Rename = Replace(StrF.Name,".wav","") 2:\ Fso.CopyFile(StrF.Name), (Rename),OverwriteExisting The best part is there is no cmd window that appears as the script is running. I did not want to post a script like this it 14 lines long including the message box. I do program in VB.net but for a simple function like this I prefer VBS script, to batch scripting.
-
Here a VBS script that does the same as the batch file above excepts it ask the user if they want to reboot the computer. Save As RemoveWga_V2.vbs This is the same as the above except it reports what been deleted. Save As RemoveWga_V1.vbs