Content Type
Profiles
Forums
Events
Everything posted by gunsmokingman
-
How to Copy Files in my RunOnceEX.cmd
gunsmokingman replied to LW1's topic in Unattended Windows 2000/XP/2003
This Codes Works Perfect on my Computer. I dont use C to install Windows. So It made On My Computer F:\Install\Applications\coverXP Than On C It Made C:\Program Files\coverXP So give This A Try echo off cls mode con: Cols=62 Lines=4 color f7 set CD1=%systemdrive%\Install\ set CD2="C:\Program Files\coverXP\" mkdir "%CD1%Applications\coverXP\" mkdir %CD2% ping -n 1 127.0.0.1>nul Echo Test me > %CD1%Applications\coverXP\Test.txt date /t >> %CD1%Applications\coverXP\Test.txt time /t >> %CD1%Applications\coverXP\Test.txt Copy %CD1%Applications\coverXP\Test.txt %CD2% ping -n 1 127.0.0.1>nul %CD2%Test.txt -
Do You have a cmd that adds the user at the cmdlines.txt point. Msfn Guide To Add Users [COMMANDS] "useraccounts.cmd" If you do not have some thing that is based on what is provided from the link Than we cant help you.
-
How to Copy Files in my RunOnceEX.cmd
gunsmokingman replied to LW1's topic in Unattended Windows 2000/XP/2003
I think This Is The Cmd that you need. REG ADD %KEY%\005 /V 3 /D "cmd.exe /c Copy %systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\" You Could Also Make A Batch File That Does The Copy Part and call the batch at the Run1 part. REG ADD %KEY%\005 /V 3 /D "Your-location-of-cmd\Name-of-the-cmd." Batch Code echo off cls mode con: Cols=62 Lines=4 color f7 Copy "%systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\ -
Play a mp3 file before WPI starts
gunsmokingman replied to Pezzie's topic in Unattended Windows 2000/XP/2003
There Are 2 Files In Here One To Start The Cmd And The Other The Cmd. Here A Simple Menu In Cmd That Allow For 3 Music Choices Play A game Of Solitaire There a Demo Count Down In It There A Radio Station That Will Play In WMP10 To Use This In A Ua Add This To A cmdlines.txt I made This A self Extracting Winrar To Make It Easier To Use, and to not stop the install process. I Gunsmokingman give all users full permission to do what ever they want with this script. [COMMANDS]"MyMusic.exe"Here Is The StartMusic.cmd echo offcolor 5fTitle Start MYMUSICMYMUSIC.CMDRED MEANS USE CARE WHEN EDITINGGREEN EDIT TO YOUR NEEDS PURPLE ARE THE ACTION IT WILL PERFORM ORANGE ACTION FOR DEMO PURPOSE TO TEST THIS WITHOUT EDITING BLUE CLEAN UP PART EG There 3 Files That Get Deleted At The End. If You Change Any Of The Scripts Names Remeber To Change The Names In The Script To Match The Changes To Edit This Just Extract the MyMusic.cmd To Any Location Edit it to what you want. Next I use winrar and so because there are 2 cmd in there I just delete the MyMusic File From The SFX after i have edit the extracted one. Than I add The edit one back in. MyMusic.exe -
Play a mp3 file before WPI starts
gunsmokingman replied to Pezzie's topic in Unattended Windows 2000/XP/2003
That The Location \Program Files\Windows Media Player Just Save That Cmd Than Make A Text File Called cmdlines.txt save it in the :\XPCD\$OEM$ Directory [COMMANDS] "PlayMusic.cmd" This Will Run At The 13 min mark. You Can also Have It Play a music list. Below Are 2 examples Of How To Run This. [Guirunonce] I dont Use This method or WPI So I cant Help There. -
Play a mp3 file before WPI starts
gunsmokingman replied to Pezzie's topic in Unattended Windows 2000/XP/2003
Try This In The cmdlines.txt place the script in the same spot as cmdlines.txt I Gunsmokingman give all users full permission to do what ever they want with this script. Also To Test The Cmd just right click than hit open than hit run next than a security warning say yes to run the cmd or no to not run. If It Is ran, then it will open Mplayer2 In \Program Files\Windows Media Player This runs perfect on my machine. Are You Sure It Not A Virtual PC, Problem. -
Play a mp3 file before WPI starts
gunsmokingman replied to Pezzie's topic in Unattended Windows 2000/XP/2003
Try This Add This To The cmdlines.txt , I call this PlayMusic.cmd I Gunsmokingman give all users full permission to do what ever they want with this script. Here Is The Code For The Cmd Script echo offclsmode con: cols=55 lines=3color 9fTITLE Play Some Musicecho.echo Play Some Music::start wmplayer.exe::or Thisstart mplayer2.exeping -n 2 127.0.0.1>nulexitThis will run at the cmdlines.txt , It Will, Open either of those 2 .Edit to your needs. PlayMusic.cmd -
@rem SetupMgrTag @echo off rem rem Dit is een voorbeeldbatchscript dat door Installatiebeheer is gegenereerd. rem Als dit script is verplaatst van de locatie waar het is gemaakt, dient het mogelijk te worden aangepast. rem set AnswerFile=.\Winnt.sif set SetupFiles=.\i386 F:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% Try This For Your Winnt.bat
-
IExpress executable deleting itself?
gunsmokingman replied to Gagorian's topic in Unattended Windows 2000/XP/2003
Here I Add A cmd that generates the cleanup vbs This worked well on my computer echo off cls color f2 mode con: cols=55 Lines=3 Title Test Remove Vbs > %Systemdrive%\CU1.vbs echo Dim Garbage >> %Systemdrive%\CU1.vbs echo set Garbage = (CreateObject("Scripting.FileSystemObject")) >> %Systemdrive%\CU1.vbs echo msgbox "Starting Clean UP?",vbokonly+48,"Clean Up" >> %Systemdrive%\CU1.vbs echo Garbage.DeleteFile ("\CU1.vbs") >> %Systemdrive%\CU1.vbs echo wscript.sleep 500 >> %Systemdrive%\CU1.vbs echo Delete=("\CU1.vbs") >> %Systemdrive%\CU1.vbs echo wscript.sleep 500 >> %Systemdrive%\CU1.vbs echo msgbox "Clean UP Completed?",vbokonly+48,"Clean Up Those Files" start /w %Systemdrive%\CU1.vbs set /p = Press Key To Close -
IExpress executable deleting itself?
gunsmokingman replied to Gagorian's topic in Unattended Windows 2000/XP/2003
This Will Delete This File On Systemdrive Red Is Where You Add The File Name To Be Deleted. -
%CDROM% command in VBS files?
gunsmokingman replied to glent's topic in Unattended Windows 2000/XP/2003
This Will Get The First CD Drive Letter. Dim strDriveLetter Dim intDriveLetter Dim fs 'As Scripting.FileSystemObject Const CDROM = 4 On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") strDriveLetter = "" For intDriveLetter = Asc("A") To Asc("Z") Err.Clear If fs.GetDrive(Chr(intDriveLetter)).DriveType = CDROM Then If Err.Number = 0 Then strDriveLetter = Chr(intDriveLetter) Exit For End If End If Next L=MsgBox ("Your Cd Is: " & strDriveLetter,vbokonly+48,"The Cd Is: " & strDriveLetter ) wscript.quit -
RunOnceEx.cmd Template Maker
gunsmokingman replied to gunsmokingman's topic in Unattended Windows 2000/XP/2003
Does This explain Things. I am Dislextic So For Me It A Time Saver. I thought other members might like it if they dont have to type things . Plus It Hta and They can edit the code to how ever they want. I made this to save time from typing things It makes a simple RunOnceEx.cmd -
Old Post I have remove the file.
-
Force Delete of Install Folder
gunsmokingman replied to Incroyable HULK's topic in Unattended Windows 2000/XP/2003
Here A Vbs Code That deletes It Self RED Means You Can Change ORANGE Means You Can KEEP OR REMOVE LINE Here A Cmd That Produces The Same Vbs But It Wont Delete The Cmd. Use This To Make As Many Needed. The Above Are From My Clean Up Template I Just Change some Of the Names And Took Out The Test And Short Cut Sections. -
Some commands dont work at start of RunOnceEx
gunsmokingman replied to durex's topic in Unattended Windows 2000/XP/2003
Try This It A Edit Version Of My CleanUp Template. I have It Set To Remove OfficeTemp, And Delete This Vbs File. Cut And Paste This And Save As As OTCleanUp.cmd echo off cls mode con: cols=55 lines=3 COLOR F3 TITLE REMOVE OfficeTEMP > %Systemdrive%\CleanUp1.vbs echo Dim Garbage >> %Systemdrive%\CleanUp1.vbs echo set Garbage = (CreateObject("Scripting.FileSystemObject")) >> %Systemdrive%\CleanUp1.vbs echo msgbox "Starting Clean UP?",vbokonly+48,"Clean Up" >> %Systemdrive%\CleanUp1.vbs echo wscript.sleep 500 >> %Systemdrive%\CleanUp1.vbs echo Garbage.DeleteFolder ("%Systemdrive%\OfficeTEMP") >> %Systemdrive%\CleanUp1.vbs echo Delete=("%Systemdrive%\OfficeTEMP\") >> %Systemdrive%\CleanUp1.vbs echo wscript.sleep 500 >> %Systemdrive%\CleanUp1.vbs echo Garbage.DeleteFile ("\CleanUp1.vbs") >> %Systemdrive%\CleanUp1.vbs echo wscript.sleep 500 >> %Systemdrive%\CleanUp1.vbs echo Delete=("\CleanUp1.vbs") start /w %Systemdrive%\CleanUp1.vbs ECHO. ping -n 2 127.0.0.1>nul | set/p = Processing Final Clean Up! exit -
Force Delete of Install Folder
gunsmokingman replied to Incroyable HULK's topic in Unattended Windows 2000/XP/2003
Here Try This It My Clean Up Template It Will Remove every thing. Edit it To Suit Your Needs. R1_CleanUp.cmd -
%YEAR% Variable in Batch File
gunsmokingman replied to Incroyable HULK's topic in Unattended Windows 2000/XP/2003
This Is What This Code Produces echo off cls color F8 mode con: Cols=55 Lines=3 Title What Year Is It SET YEAR=%date:~10,10% echo. set /p = The Year Is %YEAR% Re-Edit Both Work Here @echo off cls color F2 mode con: Cols=55 Lines=4 Title What Year Is It Test 2 SET YEAR=%date:~-4,10% echo. @echo The Year Is %YEAR% pause -
Add That In Winnt.sif [Shell] CustomDefaultThemeFile=%systemdrive%\WINDOWS\Resources\Themes\MCBlue2.theme I have That As My Last Entry The Theme Must Be There In That Location For It To Work. To Get It There I Have Made A Winrar.exe That Runs From cmdlines.txt [COMMANDS] "REGEDIT /S 000.reg" "REGEDIT /S 020.reg" "REGEDIT /S 040.reg" "REGEDIT /S 060.reg" "REGEDIT /S 080.reg" "Theme.cmd" "RunOnceEx.cmd" Which Runs This Batch File mode con: Cols=37 Lines=6 color 4f echo. echo Adding The Custom Themes echo. echo GsmGrey MCBlue2 Royale echo. start /w Themes.exe
-
Unattended upgrade from network share point
gunsmokingman replied to ctconline's topic in Unattended Windows 2000/XP/2003
That will copy them to a temp drive start THERESOURCE\i386\winnt32.exe /noreboot /tempdrive:D: /unattend:winnt.sif This will bring up the help. THERESOURCE\i386\winnt32.exe /? -
Here I Changed What You Have It Should Work Fine As Long As You Have The Correct Locations
-
changing icon for a .cmd file
gunsmokingman replied to jbm's topic in Unattended Windows 2000/XP/2003
Here Is A quick How To Change A Icon, And adding It To Any Files. Hope This Helps -
start /wait rundll32.exe iernonce.dll,RunOnceExProcess Mine Works Perfect and I dont Have That line In Mine What So Ever cmdow @ /HID @echo off for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "The Install Section" /f REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f REG ADD %KEY%\010 /VE /D "Installing Extra Codecs" /f REG ADD %KEY%\010 /V 1 /D "%CDROM%Apps\ACEMCP591\ACEMCP591PRO.EXE /silent /v/qb " /f REG ADD %KEY%\015 /VE /D "Alcohol120" /f REG ADD %KEY%\015 /V 1 /D "REGEDIT /S %CDROM%Apps\Alcohol\TestAlcohol.reg" /f REG ADD %KEY%\015 /V 2 /D "%CDROM%Apps\Alcohol\setup.msi /qb/promtrestart" /f REG ADD %KEY%\020 /VE /D "Axialis IconWorkshop v5.03" /f REG ADD %KEY%\020 /V 1 /D "REGEDIT /S %CDROM%Apps\Axialis\HK_CU_RegAxialis.reg" /f REG ADD %KEY%\020 /V 1 /D "%CDROM%Apps\Axialis\Axialis.exe /s /v/qn" /f REG ADD %KEY%\025 /VE /D "Axialis Notes" /f REG ADD %KEY%\025 /V 2 /D "%CDROM%Apps\Axialis\Axialis.TXT /NOTEPAD.EXE" /f REG ADD %KEY%\030 /VE /D "BitTorrent" /f REG ADD %KEY%\030 /V 1 /D "%CDROM%Apps\BitTorrent\BitTorrent-3.4.2.exe /s /v/qn" /f REG ADD %KEY%\035 /VE /D "FlashPlayer7" /f REG ADD %KEY%\035 /V 1 /D "%CDROM%Apps\Flash\FlsPlyr7Inst.exe /s /v/qn" / REG ADD %KEY%\045 /VE /D "MicroAngelo57" /f REG ADD %KEY%\045 /V 1 /D "%CDROM%Apps\MicroAngelo\MicroAngelo57.exe /silent /v/qb" /f REG ADD %KEY%\047 /VE /D "Mozilla" /f REG ADD %KEY%\047 /V 1 /D "%CDROM%Apps\Mozilla\Mozilla.exe" /f REG ADD %KEY%\050 /VE /D "MSN Messenger 6.2" /f REG ADD %KEY%\050 /V 1 /D "%CDROM%Apps\MsnMsgs\MsnMsgs.msi /qr" /f REG ADD %KEY%\054 /VE /D "NERO63115" /f REG ADD %KEY%\054 /V 1 /D "%CDROM%Apps\Nero\NERO63115.EXE /noreboot /Yes_ui /sn=ABCD-EFGH-IJKL-MNOP-QRST-1234 /write_sn" /f REG ADD %KEY%\063 /VE /D "ShockWave" /f REG ADD %KEY%\063 /V 1 /D "%CDROM%Apps\ShockWave\SckWveInstFull.exe /s /v/qn" /f REG ADD %KEY%\065 /VE /D "Spybot S&D 1.3" /f REG ADD %KEY%\065 /V 1 /D "%CDROM%Apps\Spybot\spybotsd13.exe /silent" /f REG ADD %KEY%\075 /VE /D "VXPv713" /f REG ADD %KEY%\075 /V 1 /D "REGEDIT %CDROM%Apps\VoXP\voptxp.reg" /f REG ADD %KEY%\075 /V 2 /D "%CDROM%Apps\VoXP\VXPv713.exe /s /v/qn" /f REG ADD %KEY%\080 /VE /D "VXP713 Update" /f REG ADD %KEY%\080 /V 1 /D "%CDROM%Apps\VoXP\VXP713Up.exe /s /v/qn" /f REG ADD %KEY%\083 /VE /D "Winamp5" /f REG ADD %KEY%\083 /V 1 /D "%CDROM%Apps\Winamp\Winamp5.msi Xname=Spad Xkey=XXXXX-XXXXX-XXXXX-XXXXX Xagent=0 Xlibrary=0 Xintex=1 Xmodernskin=1 Xaudio=1 Xvideo=0 Xvisual=0 Xextra=0 Xregopt=0 /qr" /f REG ADD %KEY%\090 /VE /D "Wrar320ce" /f REG ADD %KEY%\090 /V 1 /D "%CDROM%Apps\WinRar\wrar320ce.exe /silent /v/qn" /f REG ADD %KEY%\170 /VE /D "Preparing Final Clean up ..." /f REG ADD %KEY%\170 /V 1 /D "%CDROM%Apps\Cleanup.exe" /f EXIT Try removing this line from yours, I counted there was 4 calls to this. start /wait rundll32.exe iernonce.dll,RunOnceExProcess
-
changing icon for a .cmd file
gunsmokingman replied to jbm's topic in Unattended Windows 2000/XP/2003
The only way to do it is to hack the Cmd.exe it self. I have changed the icon on this one Removed By GSM -
changing icon for a .cmd file
gunsmokingman replied to jbm's topic in Unattended Windows 2000/XP/2003
double post my mistake Removed By GSM -
something like runonce at startup
gunsmokingman replied to Radimus's topic in Unattended Windows 2000/XP/2003
Add The Cmd to cmdlines.txt [COMMANDS] "REGEDIT /S 000.reg" "REGEDIT /S 020.reg" "REGEDIT /S 040.reg" "REGEDIT /S 060.reg" "REGEDIT /S 080.reg" "Theme.cmd" "RunOnceEx.cmd"