October 3, 200322 yr I was a little bored last night so i thought i would write a little cmd script to write all my files and reg tweaks and put them all together and create an iso and burn a disc. Here is my code see if anyone can beat this happy reading...lol...Slipstream.cmd Edited October 3, 200322 yr by xper
October 3, 200322 yr I don't see the point in that, why don't you just write it out by hand, whats the need in writing a script to write a load of other scripts???
October 3, 200322 yr Author here is the whole codeDownload Right click and save target as...it is a bit of fun, plus i can click on slipstream.cmd go and sit down watch a bit of telly have a cup of tea come back to the p.c and i have got a disc all waiting for me
October 3, 200322 yr devil270975, please post your code in parts, like part:1 part: 2 etc. in 2 or 3 posts.You screwed board tables with that long post.Thank you
October 3, 200322 yr DEAR GODI'LL HIRE YOU MYSELF! Anyone who can waste that much line code for so little return deserves a job at redmond.f*** off, I saw him first
October 3, 200322 yr devil270975: Don't worry, I understand where you are comming from. I like to create scripts that create scripts in order to save time. I also do it to prove to myself that there isn't anything I can't do by command script. I had someone once argue that it's impossible to create a timer script that would count down and launch a program when it hits zero. Proved him wrong. It's a thrill, right? I have scripts to do everything you could ever imagine. I have to administer over 500 PCs and when you have to do something to all of them scripts come to great use. Anything can be done using a batch script. I will take any challenge that says not. :-DI would recommend that you take parts of your script such as the reg keys and put them into an "INI" file of some kind and search that using the for command ( EXAMPLE: file.ini[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ApmActive]"Active"=dword:00000001[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ApmActive]"Active"=dword:00000001[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM]for /f %%i in (file.ini) DO echo %%i>>XP\$OEM$\$1\Install\NTAPM.cmdI would also make the winnt.sif file a stand alone file and use the FOR statement on it as well. It's nice to have everything together, but seem to have done way too much work. I am sure it's hell to find what you want to edit. By calling files from other places you can make it easier to edit. You can even add options at the beginning to ask for filenames and such so you can try different things without editing your existing files. You could also create prompts to change items on the fly.Example winnt.sif....[userdata]....computername=%cn%....set /p siffile=Enter location and name of desired SIF file: set /p cn=Enter desired name of Computer: for /f %%i in (%siffile%) do echo %%i>>file.txtI don't really dig the 1 file thing, but if that is how you would like to do it then it's kewl. Maybe some of my suggestions help. Let me know.Good Luck!
October 3, 200322 yr not bad. looks hard.@devil270975for this too work do I have to put my xp cd contents in a folder call XP_BACKUP.with a folder call SVCPACK in the i386 folders or is it in the root folder of xp_backupegxp_backup-->i386-->hotfixes----->svcpack-->support toolsORxp_backup-->hotfixes-->i386-->svcpack-->support tools
October 3, 200322 yr DEAR GODI'LL HIRE YOU MYSELF! Anyone who can waste that much line code for so little return deserves a job at redmond.f*** off, I saw him first i want a job there!
October 3, 200322 yr Author @Garetthegod:Slipstream -->Boot ---->Microsoft Corporation.img -->Drivers -->Install ---->{All your program folders} -->Setup_screens{optional} -->SVCPACK ---->SP1a.exe ---->SP2v1213.exe ---->HFTYPE1 ------>type1 hotfixes ---->HFTYPE2 ------>type2 hotfixes ------>MDAC -------->Q823718.exe -->System32 ---->all files go here ie: oeminfo.ini -->XP_BACKUP ---->all files from xp dischope this explains it a littleLee
October 3, 200322 yr i suppose theres no prize for the shortest my thinking is if you got a massive cmd script your going the wrong way.. reg tweaks in hive files, hotfixes in cmdlines.txt and a few third party apps in a cmd
October 3, 200322 yr i suppose theres no prize for the shortest my thinking is if you got a massive cmd script your going the wrong way.. reg tweaks in hive files, hotfixes in cmdlines.txt and a few third party apps in a cmd no this is to create a XPCD setup not the appz etc.
October 3, 200322 yr oh i see .. mustv been confused by the topic title .. i take it back good jobi saw a humongous cmd script and thought wtf is this guy doing
Create an account or sign in to comment