Content Type
Profiles
Forums
Events
Everything posted by gunsmokingman
-
Help with a batch file?
gunsmokingman replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
First of all you should just stick to one language. You will not need a input for this as the Array holds all the file names. This check to make sure the ToHere exists if not it makes the folder. Save as CopyXpFiles,vbs Here is a suggestion have you thought of making a HTA then the user will have a full graphical interface. Here is the code I have included a rar file of this script. That to make sure there is no errors if you where to cut and paste it. This makes a HTA with 4 buttons that when pressed will open a message box with a confirm button pushed. Code Only For Reference -
Installing an unattended windows from HDD
gunsmokingman replied to wan's topic in Unattended Windows 2000/XP/2003
He seems to want to install it from Windows What if he has a OS installed already then there would be a boot.ini If he has his drive in NTFS then a normal Dos Boot disk would not work as it can not read NTFS -
Installing an unattended windows from HDD
gunsmokingman replied to wan's topic in Unattended Windows 2000/XP/2003
Try this place this cmd promt in the location of your XPCD on the hard drive. I have it move the $OEM$ folder to the i386 folder You will have to change the tempdrive setting to match what you want. /tempdrive:G: Save As InstallXPHD.cmd This will not reboot the computer, instead it adds a entry to the boot.ini that when selected will continue the install. -
Try this VBS Script, just place it in the folder where you have the updates.
-
Help with a batch file?
gunsmokingman replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Save As Vbs_ToXcopy.vbs This a uses VBS to copy the file. I have add some extra lines that will copy a whole folder and it sub folder. Notes To Change it from copy a single file to copy a Folder and it sub Folder Change These Line To This Save As Vbs_Copy.vbs -
Help with a batch file?
gunsmokingman replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Yes you can use the menu as I posted it here so other members can use it. What you want might be better if that was a vbs script. 1:\ Has a user inputbox 2:\ Detects if the inputbox has any text in it 3:\ If there is no text then it ask if you want to redo or quit 4:\ It set up to use Windows Explorer to open up the location Note I have also included a line that is commentted out that will run Path\file. Change this To this Saves As Userinput.vbs Now you can also pass varibles from VBS script to Cmd Promt Save as userInput_ToCmdPromt.vbs -
I do not know if this will help you but here is a VBS script. What this script does is run a loop that collects all the hard drives on the local computer then it checks for the path to the exe. Save As StartJava.vbs
-
1:\ Get Resource Hacker 2:\ Copy The Shell32.dll to a folder outside of Windows, I use %SystemDrive%\Shell 3:\ Open Resource Hacker then in the file menu navigate to where you have placed the Shell32.dll 4:\ Replace the icons that you want with resource hacker 5:\ Go here and read on how to add the modified shell32.dll to your UA install CD Now if you want you can try my My Modified Explorer.exe, Shell32.dll, uxtheme.dll files. I have made them so they can be used in a Ua install. If you want to replace the files while in Windows then use this Replacer to replace the files.
-
jaws75 keep up the good work Here is a js script that you may be able to use to make a sidebar gadget that act like task manager.
-
Batch files in Unattened
gunsmokingman replied to ethanmcf's topic in Unattended Windows 2000/XP/2003
Wait Ill look in to my magic mittor to read your batch files so I can see where the problems is. Ops I just broke my magic mirror could you post your code of what you have done. Then you may get a resonable reply to your question. -
Solution For VBScript Functionality In Batch Files
gunsmokingman replied to snooz's topic in Unattended Windows 2000/XP/2003
Here is your cmd as a full VBS script. I use the VBS script to start the cmd promt to install Adobe. This will not show the Cmd Promt Window, as I have it set to be hidden from the VBS Script. I only have tested to make sure there is no run time errors, I do not use Adobe, so check the install function to make sure it is correct. Save As InstallAdobe.vbs -
Help with a batch file?
gunsmokingman replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Here is a menu template that does not use the choice cmd you will have to fill it in with what you want. -
VBS help
gunsmokingman replied to Batch User's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Run Something And Wait For It To Finish Run Something And Not Wait For It To Finish Run Somthing With A Space In It Path Check For File Then Run It And Wait For it To Complete Check For File Then Run It And Not Wait For it To Complete -
Yes I did a upgrade to Vista from a less then legal XP with no problems.
-
Batch file help
gunsmokingman replied to braindedd's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
This VBS script does the same but uses VBS to pass the Folder and Path varibles back to Cmd Promt Save As LastFolder.vbs This Script will pass all the Varibles from an Array to the Cmd Promt Screen. This will show the Last Folder Name , Start Folder Path, Start Folder Date Created, Start Folder Last Aceess Date, Start Folder Size, this will then be dispalyed in Cmd Promt, each with it own text color and Cmd Bar Title. Save As LastFolderV1.vbs -
How to Auto-Insrt the Serial Number?
gunsmokingman replied to Wesmosis's topic in Unattended Windows 2000/XP/2003
I do not know if this will help, you will have to figure out how to get it to run from the auto run on a CD This checks for %SystemDrive%\WINDOWS\Resources\Themes\Luna\luna.msstyles I figure this will not exist if you where to boot from a CD. Save As Select_UaInstall.bat -
Browseui.dll not found and SysRestore won't run!
gunsmokingman replied to foursides's topic in Windows XP
Here is a link to Service Pack 2 Down Load Page -
Here a VBS script that uses the Yes No Cancel Messagebox just fill in your path to the app Save as FileZilla.vbs
-
VBS set path variable
gunsmokingman replied to MioKawaii's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Try this it list the first instance of \Windows\System32 then exits the loop This will list all instances of Windows\System32 on the local computer This will list the first instance of Widows\System32\Shell32.dll then exits the loop This will list all the instances of Widows\System32\Shell32.dll on the local computer -
Downloads Script
gunsmokingman replied to Batch User's topic in Web Development (HTML, Java, PHP, ASP, XML, etc.)
You could try this. Place this in the folder with the download file and save it as Index.html Now I have tried this only on IE7 and it renders correct as to other browsers I do not know if it will work correct. 1:\ This has a link to a SFX file that cleanup IE7 temp, forms, passwords, and addons. 2:\ Added some styles to change the button color and text OnMouseOver and OnMouseOut Events 3:\ Have a popup that gives details of the download 4:\ Has a onload event that dispaly the username and changes the html title. -
Batch file help please
gunsmokingman replied to Batch User's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Try This -
Help with batch scripting
gunsmokingman replied to Mad_Skillz's topic in Unattended Windows 2000/XP/2003
This is the way I do it myself, there no script or nothing needed it all get copy to the correct spot during the install. Path For ShortCut Before Install After Install -
Help with batch scripting
gunsmokingman replied to Mad_Skillz's topic in Unattended Windows 2000/XP/2003
If you do not want to use any third party program. Then you can use a vbs script to make shortcuts. This script leaves a shortcut for notepad and WMP on the user desktop that ran this script. You could have this script start from cmd promt. Example StartShortCut.cmd Save As ShortCut.vbs