devil270975 Posted October 3, 2003 Share Posted October 3, 2003 (edited) 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, 2003 by xper Link to comment Share on other sites More sharing options...
valkyre Posted October 3, 2003 Share Posted October 3, 2003 Wow, I bet that took a while to write out. Link to comment Share on other sites More sharing options...
Thanatos Posted October 3, 2003 Share Posted October 3, 2003 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??? Link to comment Share on other sites More sharing options...
devil270975 Posted October 3, 2003 Author Share Posted October 3, 2003 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 Link to comment Share on other sites More sharing options...
xper Posted October 3, 2003 Share Posted October 3, 2003 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 Link to comment Share on other sites More sharing options...
XPerties Posted October 3, 2003 Share Posted October 3, 2003 using [ QUOTE ] [ / QUOTE ] works better also. Link to comment Share on other sites More sharing options...
Spheris Posted October 3, 2003 Share Posted October 3, 2003 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 Link to comment Share on other sites More sharing options...
un4given1 Posted October 3, 2003 Share Posted October 3, 2003 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! Link to comment Share on other sites More sharing options...
DaveXP Posted October 3, 2003 Share Posted October 3, 2003 i like a changelle i will check back soon! Link to comment Share on other sites More sharing options...
gareththegod Posted October 3, 2003 Share Posted October 3, 2003 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 Link to comment Share on other sites More sharing options...
DaveXP Posted October 3, 2003 Share Posted October 3, 2003 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! Link to comment Share on other sites More sharing options...
devil270975 Posted October 3, 2003 Author Share Posted October 3, 2003 @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 Link to comment Share on other sites More sharing options...
Numinous Posted October 3, 2003 Share Posted October 3, 2003 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 Link to comment Share on other sites More sharing options...
DaveXP Posted October 3, 2003 Share Posted October 3, 2003 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. Link to comment Share on other sites More sharing options...
Numinous Posted October 3, 2003 Share Posted October 3, 2003 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now