Gedrog Posted March 9, 2005 Share Posted March 9, 2005 (edited) 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 greatremoved ~ Alanoll Edited March 9, 2005 by Alanoll Link to comment Share on other sites More sharing options...
gunsmokingman Posted March 9, 2005 Share Posted March 9, 2005 This Is Where You Want The File To Copy ToThis Is a Location For A Ua Cd Install%systemdrive%\XPCD\$OEM$\$$\system32Ill Assume The File In This Location %SYSTEMDRIVE%\WINDOWS\system32HERE IS THE COPY SCRIPTECHO OFF && cls && Mode 55,3 && Color 5eif not exist %SYSTEMDRIVE%\XPCD\$OEM$\$$\system32 MKdir %SYSTEMDRIVE%\XPCD\$OEM$\$$\system32 && goto copy1if exist %SYSTEMDRIVE%\XPCD\$OEM$\$$\system32 goto copy1:Copy1if not exist %systemdrive%\Windows\System32\WPA.DBL goto Missingif exist %systemdrive%\Windows\System32\WPA.DBL goto work:MissingEcho The Files Is Not There. Preparing To Exit && Ping -n 2 127.0.0.1>nul && goto Quit:workcopy /y "%SYSTEMDRIVE%\Windows\System32\WPA.DBL" "%SYSTEMDRIVE%\XPCD\$OEM$\$$\system32" Ping -n 1 127.0.0.1>nulgoto quit:quitgoto EOFexit Link to comment Share on other sites More sharing options...
Alanoll Posted March 9, 2005 Share Posted March 9, 2005 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 More sharing options...
Gedrog Posted March 9, 2005 Author Share Posted March 9, 2005 Thanks Sory for the copy paste but I did not want to confuse the matter further. So I have to make the following directory treeD:\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$\$$\system32Nice 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 More sharing options...
gunsmokingman Posted March 9, 2005 Share Posted March 9, 2005 All you had to do was cut and paste the code I left, It would of done it all for you.It makes this directory%SYSTEMDRIVE%\XPCD\$OEM$\$$\system32Than it copies This File%SYSTEMDRIVE%\Windows\System32\WPA.DBLTo The Location Link to comment Share on other sites More sharing options...
Gedrog Posted March 13, 2005 Author Share Posted March 13, 2005 OK Gunsmoking where do I copy the code into do I go into cmdI 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 More sharing options...
gunsmokingman Posted March 13, 2005 Share Posted March 13, 2005 Here The ScriptCopyWpa.cmd Link to comment Share on other sites More sharing options...
Gedrog Posted March 13, 2005 Author Share Posted March 13, 2005 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 More sharing options...
gunsmokingman Posted March 13, 2005 Share Posted March 13, 2005 Just open itIt will start every thing in the scriptYou dont have to do nothing but run it.1\ Download it2\ Go to where you downloaded the script3\ Right click the script and hit open4\ The script will start and do it tasks Link to comment Share on other sites More sharing options...
Gedrog Posted March 14, 2005 Author Share Posted March 14, 2005 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 popularApreciate the helpMe Luke Skywalker ask Yoda jedimaster very nicely Link to comment Share on other sites More sharing options...
gunsmokingman Posted March 14, 2005 Share Posted March 14, 2005 (edited) Open Notepad And Type In this BelowEcho Offclsmode 55, 3color 9eecho.echo Hello Lets Begin!ping -n 3 127.0.0.1>nulexitNow Save This As Hello.cmd Make Sure When You save it, That you save it as a all File. Edited December 3, 2005 by gunsmokingman Link to comment Share on other sites More sharing options...
Gedrog Posted March 19, 2005 Author Share Posted March 19, 2005 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 More sharing options...
Alanoll Posted March 19, 2005 Share Posted March 19, 2005 127.0.0.1 is the loopback IP address to your system. It's equivalent to localhost Link to comment Share on other sites More sharing options...
gunsmokingman Posted March 19, 2005 Share Posted March 19, 2005 (edited) Here Is Another To HelpPing -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 WindowColor = The color of the Background And Text ColorSet = This Is A Way To Set Varibles In A ScriptEG set Gsm=Gunsmokingman echo %GSM% is the same as Echo Gunsmokingmanecho off cls && mode 55,3 && color 5eSet Loc=%windir%\system32\GSMTEST.txtSet checktest=%windir%\system32\shell32.dllset 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 Next1If 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 Next2If Not Exist %Loc% %P3%>nul | echo %Loc% Is Missing && goto Next3:Next2::HERE WHERE WE GET THE CONFIRM ON THE FILEclsMode 62,3 Color f2 && TITLE Here The File Nowecho. && %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 FORcls && Mode 62,3 && Color f1 && TITLE Makes The Filedate /t >> %loc%Echo Hello This Is a Test >> %loc%Echo ------------------------ >> %loc%echo. && %P3%>nul | echo Completed Out Put File START /W %LOC% cls && color 1fecho. && %P3%>nul | echo Preparing To Re-Run The Check!goto Next2:HUH::ERROR JUST IN CASE SHELL32 IS MISSING?clsMode 62,5 && Color fc && TITLE WHERE MY SHELLECHO HUH? WHERE MY SHELL32.DLL && %P3%>nulgoto quit:Quit:: CLEAN UP AND LAST MESSAGEcls && Mode 62,5 && Color 5F && TITLE Clean Up Timedel /s /q %loc%%P3%>nul | echo Clean Up Completed! exit Edited March 19, 2005 by gunsmokingman Link to comment Share on other sites More sharing options...
Gedrog Posted March 21, 2005 Author Share Posted March 21, 2005 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. 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