Jump to content

devil270975

Member
  • Posts

    367
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by devil270975

  1. Hi there, just in case anyone is interested here are two scripts that toggle hidden and super hidden files if they are visible it will hide them and if they are hidden it will show them Togglehidden.cmd :: Script to toggle Windows Explorer display of hidden files, super-hidden :: files, and file name extensions @echo off setlocal set key=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced set hiddenvalue=Hidden set superhiddenvalue=ShowSuperHidden set fileextvalue=HideFileExt reg query %key% /v %hiddenvalue% | find "0x2" > NUL if errorlevel 1 goto Hide :Show reg add %key% /v %hiddenvalue% /t REG_DWORD /d 1 /f > NUL reg add %key% /v %superhiddenvalue% /t REG_DWORD /d 1 /f > NUL reg add %key% /v %fileextvalue% /t REG_DWORD /d 0 /f > NUL echo. echo Windows Explorer will show hidden files and file name extensions. echo You might need to change to another folder or press F5 to refresh the echo view for the change to take effect. goto :eof :Hide reg add %key% /v %hiddenvalue% /t REG_DWORD /d 2 /f > NUL reg add %key% /v %superhiddenvalue% /t REG_DWORD /d 0 /f > NUL reg add %key% /v %fileextvalue% /t REG_DWORD /d 1 /f > NUL echo. echo Windows Explorer will not show hidden files and file name extensions. echo (These are the default settings.) You might need to change to another echo folder or press F5 to refresh the view for the change to take effect. togglehidden.vbs ' Script to toggle Windows Explorer display of hidden files, super-hidden ' files, and file name extensions Option Explicit Dim dblHiddenData, strHiddenKey, strSuperHiddenKey, strFileExtKey Dim strKey, WshShell On Error Resume Next strKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" strHiddenKey = strKey & "\Hidden" strSuperHiddenKey = strKey & "\ShowSuperHidden" strFileExtKey = strKey & "\HideFileExt" Set WshShell = WScript.CreateObject("WScript.Shell") dblHiddenData = WshShell.RegRead(strHiddenKey) If dblHiddenData = 2 Then WshShell.RegWrite strHiddenKey, 1, "REG_DWORD" WshShell.RegWrite strSuperHiddenKey, 1, "REG_DWORD" WshShell.RegWrite strFileExtKey, 0, "REG_DWORD" WScript.Echo "Windows Explorer will show hidden files and file name" & _ " extensions. You might need to change to another folder or " & _ "press F5 to refresh the view for the change to take effect." Else WshShell.RegWrite strHiddenKey, 2, "REG_DWORD" WshShell.RegWrite strSuperHiddenKey, 0, "REG_DWORD" WshShell.RegWrite strFileExtKey, 1, "REG_DWORD" WScript.Echo "Windows Explorer will not show hidden files or file " & _ "name extensions. (These are the default settings.) You might " & _ "need to change to another folder or press F5 to refresh the " & _ "view for the change to take effect." End If i have included both the .cmd and .vbs just so you can choose which one you prefer to use hope this helps lee
  2. @davexp, i have written a new script based on gosh's method Reducing size of source 100% works, at present though it doesnt support any extra's but that is all easy it is just a case of copying stuff over into the $OEM$ folder, anyway gizz a shout on messenger if you would like it Lee
  3. Hi there Guys and Gals, If anyone has an older p.c that that does not auto power down after shutdown and you are sick of having to go to system properties to enable NTAPM then here is the answer. cmdlines.txt [COMMANDS] ".\Setup.cmd" setup.cmd CLS @ECHO OFF NET USER Lee /ADD NET LOCALGROUP "Administrators" Lee /ADD NET LOCALGROUP "Users" Lee /DELETE START "HOTFIXES" /WAIT %systemdrive%\Install\Hotfixes.cmd START "UPDATE" /WAIT %systemdrive%\Install\Update.cmd START "REGISTRY" /WAIT REGEDIT /s %systemdrive%\Install\HKLM.reg START "REGISTRY" /WAIT REGEDIT /s %systemdrive%\Install\Services.reg START "NTAPM" /WAIT %systemdrive%\Install\NTAPM.cmd EXIT NTAPM.cmd cls @echo off REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ApmActive" /VE /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ApmActive" /V "Active" /T REG_DWORD /D 00000001 /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ApmActive" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ApmActive" /V "Active" /T REG_DWORD /D 00000001 /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\NTAPM\0000\Control" /V "ActiveService" /D "NtApm" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\NTAPM\0000\Control" /V "ActiveService" /D "NtApm" /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\NTAPM\0000" /V "ConfigFlags" /T REG_DWORD /D 00000000 /F > NUL REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\NTAPM\0000" /V "ConfigFlags" /T REG_DWORD /D 00000000 /F > NUL exit and that is all there is to it, i tried it with a simple reg file and it wont work, and it needs to done before log on otherwise it says access denied, so it needs to be done at the 13min mark hope this helps some of you guys Lee
  4. @DaveXP, i think i may have figured out how to use %systemdrive%, will not give any more info untill i have got it sussed
  5. Biggest update i have seen, 35mb, blimey, from what i can gather this is the whole package, but as you said it is not very clear, hopefully one of the admins will be able to clear this up for us.
  6. @Numinous, why is it that you allways s**g people off all the time, then when they respond to you, you say only joking, why do you not just keep your opinions to yourself, not everyone is as clever as you *cough* *cough* oh my i wish i was a god like you, if only i knew everything in the world just like you **NOT** most people in here have forgotten more than you will ever know, but for all those that havn't, why dont you just leave them the f**k alone and try and be a little more constructive with your comments. Devil270975 all for NEWBIE POWER Lee
  7. I am in the middle of trying to slipstream this the service pack way, i have got this so far, what you need to do is download the rollup to your desktop run this command script and it will create a folder called Rollup on your %systemdrive% then create a subfolder called root and extract the files to your %systemroot%\rootfolder, allthough i dont think it is possible to slipstream it properly at the very least this will enable you to extract the files to your prefered folder cls @echo off MKDIR %systemdrive%\Rollup SET ROLLUP=%systemdrive%\Rollup MOVE "%userprofile%\Desktop\Windows*.exe" %Rollup%\Rollup.exe MKDIR %ROLLUP%\Root SET ROOT=%ROLLUP%\Root START /WAIT %ROLLUP%\Rollup.exe -Q -X:%Root% it seems as though you have to start xpsp1hfm.exe to get the update.exe file in the sp2\update folder then you have to kill the update task and the xpsp1hfm task then start update\update.exe, because update does not exist untill you start xpsp1hfm, the problem i am having though is that update seems to only accept these switches the following section is taken from svcpack.log that is created from trying to slipstream update.exe using the above method [svcpack.log] *** 2003/10/16 23:14:41.761 *** Exe = update.exe, Version = 5.3.23.4 *** ================== Update.exe started in Slipstream mode at 10/16/2003 at 23:14:41 ================== *** Service Pack started with following command line: -q -S:"D:Slipstream\XP" *** AVAILABLE SWITCHES: [/help] [/quiet] [/passive] [/uninstall] [/norestart] [/forcerestart] [/l] [/n] [/o] [/f] /help Displays this message SETUP MODES /quiet Quiet mode (no user interaction or display) /passive Unattended mode (progress bar only) /uninstall Uninstalls the package RESTART OPTIONS /norestart Do not restart when installation is complete /forcerestart Restart after installation SPECIAL OPTIONS /l Lists installed Windows hotfixes or update packages /o Overwrite OEM files without prompting /n Do not backup files needed for uninstall /f Force other programs to close when the computer shuts down *** AVAILABLE SWITCHES: [/help] [/quiet] [/passive] [/uninstall] [/norestart] [/forcerestart] [/l] [/n] [/o] [/f] /help Displays this message SETUP MODES /quiet Quiet mode (no user interaction or display) /passive Unattended mode (progress bar only) /uninstall Uninstalls the package RESTART OPTIONS /norestart Do not restart when installation is complete /forcerestart Restart after installation SPECIAL OPTIONS /l Lists installed Windows hotfixes or update packages /o Overwrite OEM files without prompting /n Do not backup files needed for uninstall /f Force other programs to close when the computer shuts down *** i hope this helps someone and inspires them to do more than i have managed to do with it Lee
  8. I have not really kept up with whats going on in the forum recently, someone please tell me what the security rollup is about, does it replace all the hotfixes released so far since sp1a? and if not, which ones does it replace? Thanks
  9. i couldnt agree more, allthough i have been the bearer of some VERY large posts in the past Sorry guys..
  10. @DAVEXP Here you go this works i have tried it CLS @ECHO OFF :START ECHO ESTABLISHING CD-ROM DRIVE SET CDROM=A IF EXIST D:\I386\WINNT.exe SET CDROM=D: IF EXIST E:\I386\WINNT.exe SET CDROM=E: IF EXIST F:\I386\WINNT.exe SET CDROM=F: IF EXIST G:\I386\WINNT.exe SET CDROM=G: IF EXIST H:\I386\WINNT.exe SET CDROM=H: IF EXIST I:\I386\WINNT.exe SET CDROM=I: IF EXIST J:\I386\WINNT.exe SET CDROM=J: IF EXIST K:\I386\WINNT.exe SET CDROM=K: if %CDROM%==A GOTO :CD_ERR ECHO YOUR CD-ROM DRIVE IS %CDROM% XCOPY %CDROM% D:\tmp /Q /E /H ECHO PERFORMING THE REST OF THE SCRIPT :END :: <---TAKE THE PAUSE OUT ONCE YOU HAVE ESTABLISHED THE CODE WORKS PAUSE EXIT :CD_ERR ECHO NO_CDROM GOTO :END hope this helps dave and remember send me the code/script before you post it on here, cheers mate Lee
  11. Here please try looking in the forum before asking questions
  12. by the way, your topic remarkebly resembles mine hmmm... Mine
  13. @Thantos IF EXIST a:\drivepart.exe GOTO RUN_DRIVEPART GOTO NO_DRIVEPART :RUN_DRIVEPART do stuff here GOTO END :NO_DRIVEPART do stuff here :END EXIT
  14. @dave xp SET CDROM= IF EXIST D:\win51p* SET CDROM=D: IF EXIST E:\win51p* SET CDROM=E: IF EXIST F:\win51p* SET CDROM=F: IF EXIST G:\win51p* SET CDROM=G: IF EXIST H:\win51p* SET CDROM=H: IF EXIST I:\win51p* SET CDROM=I: IF EXIST J:\win51p* SET CDROM=J: IF EXIST K:\win51p* SET CDROM=K: etc... etc.... P.S I hope your not pinching my idea...lol... :newbie: :ow:
  15. to get a command script to wait 2 minutes download the win2003 resouce kit and copy the sleep.exe file to your $OEM$\$$\system32 folder then use this command script {the reason i say copy it to there is that it will register it upon install of xp} CLS @ECHO OFF SLEEP 120 EXIT / Or do other stuff if you dont want the whole resource kit then send me a pm with your email addy and i will send to you or you could simply write a sleep script using vbs open notepad and type this wscript.sleep 120000 save as sleep.vbs in your command script add this line cscript "sleep.vbs" //t:125 //nologo
  16. no probs, hows the hive hunting going? looking good from what i have seen.
  17. what do you do if you want to start a service? edit the registry? i know how to do it all manually and there is nothing else i need to learn, i know all i need to about shell scripting and programming, this was just a bit of fun, as i was bored... So dont be a plum all your life numinous
  18. Hives, old news, Topic it is much easier editing the registry than the hive that forms it
  19. @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
  20. 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
  21. 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
  22. @SideSpike: have you tried right clicking the link and then save target as...
  23. The program is called cmdow.exe Download Here
×
×
  • Create New...