Jump to content

Recommended Posts

Posted (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 by xper

Posted

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???

Posted

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

Posted

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

Posted

DEAR GOD

I'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 :rolleyes:

Posted

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. :-D

I 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.cmd

I 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.txt

I 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!

Posted

not bad. looks hard.

@devil270975

for 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_backup

eg

xp_backup

-->i386

-->hotfixes

----->svcpack

-->support tools

OR

xp_backup

-->hotfixes

-->i386

-->svcpack

-->support tools

Posted
DEAR GOD

I'LL HIRE YOU MYSELF! :rolleyes:

Anyone who can waste that much line code for so little return deserves a job at redmond.

f*** off, I saw him first :D

i want a job there! :)

Posted

@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 disc

hope this explains it a little

Lee

Posted

i suppose theres no prize for the shortest :):D 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 :rolleyes:

Posted
i suppose theres no prize for the shortest  :)  :D 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  :rolleyes:

no this is to create a XPCD setup not the appz etc. :D

Posted

oh i see .. mustv been confused by the topic title .. i take it back :):rolleyes: good job

i saw a humongous cmd script and thought wtf is this guy doing :D

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...