Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. ...or if you want to use a simple click this method, download this batch file and double-click it! help_svc.cmd
  2. Take a look at GetVersion and GetVersionEx
  3. Well, I hope you participate and enjoy MSFN's wonderful Forums. 'a few helpful threads' is a bit of an understatement though!
  4. Welcome to the Forums, I hope you enjoy your membership. I'll ask the adults to please not use foul language whilst you are logged in...
  5. Yzöwl

    Hey all

    Hello and welcome to MSFN.
  6. Welcome to the MSFN Forums, Ray. I like long stories, so until then Ray it is...
  7. Welcome to the MSFN Forums. Please ensure that your posts use the English language in any further posts!
  8. I suspect you are correct,since it appears that the backslashes were missing in the opening post! No the /q switch is not needed in those cases, it is only required on those lines using 'global wildcards', i.e. those using asterisks.I have altered my example to make the same assumptions as yourself on those files too!
  9. Instead of using %AllUsersProfile% in those non-working deletions, change them to %UserProfile%CMDOW @ /HID SHUTDOWN -r -f -t 60 -c Windows XP genstarter om 1 minut... NET USER aspnet delete DEL /Q "%SystemRoot%\*.bmp" DEL /Q "%SystemRoot%\Web\Wallpaper\*.jpg" DEL /Q "%SystemRoot%\system32\dllcache\*.scr" DEL /Q "%SystemRoot%\system32\*.scr" DEL "%AllUsersProfile%\Menuen Start\Windows Update.lnk" DEL "%AllUsersProfile%\Menuen Start\Set Program Access and Defaults.lnk" DEL "%AllUsersProfile%\Menuen Start\Windows Catalog.lnk" DEL "%UserProfile%\Skrivebord\DeepBurner.lnk" DEL "%UserProfile%\Skrivebord\IrfanView.lnk" DEL "%UserProfile%\Skrivebord\IrfanView Thumbnails.lnk" DEL "%AppData%\Microsoft\Internet Explorer\Quick Launch\DeepBurner.lnk" RD /S /Q %systemdrive%\drivers RD /S /Q %systemdrive%\install
  10. From your graphic, DeepBurner.lnk, IrfanView.lnk and IrfanView Thumbnails.lnk are all located under the Administrators Profile and you are trying to delete them from the All Users Profile!
  11. ...and welcome to you too, bebygirl!
  12. Welcome to the MSFN Forums, sport!
  13. Have you looked at using a section similar to this? [DiskConfig] Disk1 = Disk1.config [Disk1.config] SetActive1 = Yes Size1 = 3000 PartitionType1 = primary FileSystem1 = ntfs QuickFormat1 = YesI don't use it myself but it is reported to work!
  14. Hello and welcome to the MSFN Forums. We aim to please!
  15. Welcome to the MSFN Forums. You didn't find us... ...we weren't lost!
  16. This is not a one size fits all solution. You cannot use this for all keys and values, many keys would require more values to be backed up and their structure would be different. Here is an NT command script, it uses as in your example REG.EXE, which is not available by default in any pre-XP Windows OS. @ECHO OFF&SETLOCAL SET "N_=EmberImage" SET "K_=HKLM\SOFTWARE\Classes\.jpg"&SET "V_=Pre_%N_%" FOR /F "SKIP=3 TOKENS=2,3 DELIMS= " %%a IN ('REG QUERY %K_% /ve') DO ( SET "_=/t %%a /d "%%b"") ECHO:REG ADD %K_% /v %V_% %_% ECHO:REG ADD %K_% /ve /d "%N_%" /f PAUSEThe code does not contain sufficient checks/debugging for potential errors and is made only as an example to the questions originator. The code as is does not actually make registry changes, just echo's the potential changes to the console window. Note: DELIMS=<TAB> not a series of spaces! I hope it serves its purpose for you.
  17. Welcome to the MSFN Forums. Please make yourself comfortable!
  18. Welcome to the MSFN Forums.
  19. Welcome Paulo to the MSFN Forums. I'm sure that you'll enjoy the experience!
  20. Welcome to the Forum Area of MSFN. Congratulations, the first step towards fixing your problem is admitting you actually have one!
  21. Welcome to the MSFN Forums Adam. Sometimes I just wish I could swap my wealth of information for another kind of wealth!
  22. Simple Example: Menu will say CMD PromptWindows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\Folder\shell\cmdhere] @="CMD &Prompt" [HKEY_CURRENT_USER\Software\Classes\Folder\shell\cmdhere\command] @=hex(2):25,00,43,00,4f,00,4d,00,53,00,50,00,45,00,43,00,25,00,20,00,2f,00,6b,\ 00,20,00,70,00,75,00,73,00,68,00,64,00,20,00,25,00,4c,00,00,00 I used a hex notation for the actual command to help highlight the bit you needed to change. The ampersand underlines the P, and is used to designate the shortcut key. It is only necessary if you use this functionality.
  23. A few questions... Have you decided now that you want an exe? Your subject title states script! Since you have not provided us with much 'real' information For which OS is this required? How are you going to pass the search string to any 'script/exe'? Is the value data format going to be the same as that in your 'unreal' screenshots? Can profile names contain spaces, and if so will that change the value data format for the search string? Will this 'script/exe' be run locally by a user with admin/sufficient permissions to do so normally? Are you aware that there are already methods for deploying Outlook Profiles?
  24. You can use a specially written utility such as CMDOW or even cWnd. You could also just launch it with a simple vbscript or a slightly less simple one such as this.
  25. Search within this key for what subkey? and for what value?
×
×
  • Create New...