Jump to content

Auto Activation


Recommended Posts

I am trying to understand this

I am not a super litirate in command line so hope someone can help in laymans terms. I have tried to copy this file into my new slipstreamed directory but I cant find this folder u are mentioning in the help $OEM$\$$\system32 I am trying to make a unattended setup disk for my home PC as I have to reinstall regularly. I like to try out various programs ect. Sorry about my spelling not english. :} Any help would be great

removed ~ Alanoll

Edited by Alanoll
Link to comment
Share on other sites


This Is Where You Want The File To Copy To

This Is a Location For A Ua Cd Install

%systemdrive%\XPCD\$OEM$\$$\system32

Ill Assume The File In This Location

%SYSTEMDRIVE%\WINDOWS\system32

HERE IS THE COPY SCRIPT

ECHO OFF && cls && Mode 55,3 && Color 5e

if not exist %SYSTEMDRIVE%\XPCD\$OEM$\$$\system32 MKdir %SYSTEMDRIVE%\XPCD\$OEM$\$$\system32 && goto copy1

if exist %SYSTEMDRIVE%\XPCD\$OEM$\$$\system32 goto copy1

:Copy1

if not exist %systemdrive%\Windows\System32\WPA.DBL goto Missing

if exist %systemdrive%\Windows\System32\WPA.DBL goto work

:Missing

Echo The Files Is Not There. Preparing To Exit && Ping -n 2 127.0.0.1>nul && goto Quit

:work

copy /y "%SYSTEMDRIVE%\Windows\System32\WPA.DBL" "%SYSTEMDRIVE%\XPCD\$OEM$\$$\system32"

Ping -n 1 127.0.0.1>nul

goto quit

:quit

goto EOF

exit

Link to comment
Share on other sites

you have to create the $OEM$ folders yourself in the same directory as I386.

And di you ahve to copy paste from the guide? a simply link would have done nicely, even though the guide belongs to THIS site.

Link to comment
Share on other sites

Thanks Sory for the copy paste but I did not want to confuse the matter further. So I have to make the following directory tree

D:\XPCD\I386\$OEM$\$$\system32 and copy the file WPA.DBL in here

Looking at the comands at the top here I think it should be

D:\XPCD\$OEM$\$$\system32

Nice gunsmoking but where do I do what u sugest in CMD promt. Sorry dont want to sound sarcastic but I am pretty new to all this and trying to teach myself new things all the time. Again thanks dudes for any help for this noob

Link to comment
Share on other sites

OK Gunsmoking where do I copy the code into do I go into cmd

I am not yet fluent with thi command line thingys. so you have to take me step for step. ie got to start type in cmd then do this then copy and paste code. It may sound stupid but I really am a virgin to these thing. :(

Link to comment
Share on other sites

Thanks gunsmoking but this doesnt help me I do not want to frustrate u but I still need to know do I run the script from cmd

ie Start -> Run-> CMD may sound stupid but I am trying my best to learn something Apreciate your patience. Thanks

Link to comment
Share on other sites

Thanks gunsmoking I apreciate it and it works but my question is I see a lot of things here is done from command line based so instead of asking people everytime how do I do this ect I would like to try it so if someone gives me a command line script such as yourself where do I go to type all the goodies in. I have tried your original script but when I open CMD it is set to default my settings and the no matter how I tried with each of your scripts it cept givving me error mesages is there a default directory I need to go to before I type all these commands in. I am not trying to humm around the same point but I am actually trying to teach myself the basics or is there something I can read to teach me basics of the cmd line. So I can stop asking all the annoying questions to guru's like yourself. And I see the file is very popular

Apreciate the help

Me Luke Skywalker ask Yoda jedimaster very nicely

Link to comment
Share on other sites

Open Notepad And Type In this Below

Echo Off
cls
mode 55, 3
color 9e
echo.
echo Hello Lets Begin!
ping -n 3 127.0.0.1>nul

exit

Now Save This As Hello.cmd Make Sure When You save it,

That you save it as a all File.

Edited by gunsmokingman
Link to comment
Share on other sites

Thanks dude its really great and it works However I have one more question

ping -n 3 127.0.0.1>nul is this an IP adress and if so will this have to change to reflect my own PC's IP adress.

Cheers dude really apreciate the help

Link to comment
Share on other sites

Here Is Another To Help

Ping -n 3 127.0.0.1>nul =

This Is The Same As Sleep 3 But Since,

Sleep.exe is not on every one computer I use

This To Have A Temp Stop In The Script.

Mode =

This set the size of the Command Window

Color =

The color of the Background And Text Color

Set =

This Is A Way To Set Varibles In A Script

EG set Gsm=Gunsmokingman

echo %GSM% is the same as Echo Gunsmokingman

echo off

cls && mode 55,3 && color 5e

Set Loc=%windir%\system32\GSMTEST.txt

Set checktest=%windir%\system32\shell32.dll

set P3=ping -n 3 127.0.0.1>nul

:: THIS EXIST IT A EXAMPLE

If Exist  %checktest% echo Shell32.dll was there %P3%>nul && goto Next1

If Not Exist %checktesT% echo Shell32.dll was NOT there %P3%>nul && goto HUH

:Next1

::HERE THE FILE DOES NOT EXIST THIS IS A TEST

If Exist %Loc% %P3%>nul | echo %Loc% Is Here && goto Next2

If Not Exist %Loc% %P3%>nul | echo %Loc% Is Missing && goto Next3

:Next2

::HERE WHERE WE GET THE CONFIRM ON THE FILE

cls

Mode 62,3

Color f2 && TITLE Here The File Now

echo. && %P3%>nul | Echo %Loc% Was There!

cls && Color 2f

%P3%>nul | Echo Preparing To Clean Up!

goto quit

:Next3

::HERE WE MAKE THE FILE TO CHECK FOR

cls && Mode 62,3 && Color f1 && TITLE Makes The File

date /t >> %loc%

Echo  Hello This Is a Test >> %loc%

Echo ------------------------ >> %loc%

echo. && %P3%>nul | echo Completed Out Put File

START /W %LOC%

cls && color 1f

echo. && %P3%>nul | echo Preparing To Re-Run The Check!

goto Next2

:HUH

::ERROR JUST IN CASE SHELL32 IS MISSING?

cls

Mode 62,5 && Color fc && TITLE WHERE MY SHELL

ECHO HUH? WHERE MY SHELL32.DLL && %P3%>nul

goto quit

:Quit

:: CLEAN UP AND LAST MESSAGE

cls && Mode 62,5 && Color 5F && TITLE Clean Up Time

del /s /q %loc%

%P3%>nul | echo Clean Up Completed!

exit

Edited by gunsmokingman
Link to comment
Share on other sites

Thanks dudes this makes it a lot clearer I think I will get a handbook on teaching myself the basics of cmd line any sugestions on a good book will be apreciated.

And I played around a bit and its really fun to see something from few lines of code. See old dogs can be taught new tricks. :lol:

Link to comment
Share on other sites

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