Windows XP Quick Launch Size

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
batchfileman
Posts: 16
Joined: 07 Jun 2010 10:27

Windows XP Quick Launch Size

#1 Post by batchfileman » 29 Jun 2011 09:48

So I have an interesting puzzle. I am working in a virtual environment and I need to be able to resize the Quick Launch bar to the right of the Start button on the taskbar dynamically based on the number of icons a user would have. Ideally I would like to run a simply batch file that would run at startup that would do the following:

A: Count the number of shortcuts in C:\Documents and Settings\%USERACCOUNT%\Application Data\Microsoft\Internet Explorer\Quick Launch
B: Count the number of shortcuts in C:\Documents and Settings\ALL USERS\Application Data\Microsoft\Internet Explorer\Quick Launch
C: Based on the number of shortcuts above modify the length of the Quick Launch bar

The only registry setting I can find to modify the size of the Quick Launch bar is HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop /V TaskbarWinXP

The problem is that this is Hexcode and my attempts so far to decipher it have utterly failed. I know that if I export this key with the bar sized how I would like it and import it one a start up it will keep the settings that I want, however not all of my users have the same number of icons and therefore it is not a valid solution for this problem. Some users have 3 icons others have 10. I would like to make this a dynamic process for them rather than a static one.

Any suggestions?

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Windows XP Quick Launch Size

#2 Post by Ed Dyreen » 29 Jun 2011 12:28


A & B are not that hard I guess, C is a little problem. I do this in XP like this.

Let's say you figured out how you want things to look like:

Icon.Positions.REG

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
"Mode"=dword:00000001
"ScrollPos1024x768(1).x"=dword:00000000
"ScrollPos1024x768(1).y"=dword:00000000
"Sort"=dword:00000000
"SortDir"=dword:00000001
"Col"=dword:ffffffff
"ColInfo"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,0f,\
  00,00,00,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"ItemPos1024x768(1)"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,17,00,\
  00,00,e6,00,00,00,14,00,1f,48,ba,8f,0d,45,25,ad,d0,11,98,a8,08,00,36,1b,11,\
  03,17,00,00,00,4e,00,00,00,14,00,1f,50,e0,4f,d0,20,ea,3a,69,10,a2,d8,08,00,\
  2b,30,30,9d,17,00,00,00,9a,00,00,00,14,00,1f,58,60,2c,8d,20,ea,3a,69,10,a2,\
  d7,08,00,2b,30,30,9d,bf,03,00,00,4e,00,00,00,14,00,1f,60,40,f0,5f,64,81,50,\
  1b,10,9f,08,00,aa,00,2f,95,4e,17,00,00,00,32,01,00,00,14,00,1f,68,80,53,1c,\
  87,a0,42,69,10,a2,ea,08,00,2b,30,30,9d,23,03,00,00,4e,00,00,00,5e,00,3a,00,\
  84,02,00,00,78,3c,5b,90,20,08,45,4d,45,52,47,45,7e,31,2e,4c,4e,4b,00,00,42,\
  00,03,00,04,00,ef,be,78,3c,5b,90,78,3c,2d,b8,14,00,00,00,45,00,6d,00,65,00,\
  72,00,67,00,65,00,6e,00,63,00,79,00,20,00,52,00,65,00,73,00,74,00,61,00,72,\
  00,74,00,2e,00,4c,00,4e,00,4b,00,00,00,1c,00,71,03,00,00,4e,00,00,00,60,00,\
  3a,00,87,02,00,00,78,3c,5d,90,20,08,45,4d,45,52,47,45,7e,32,2e,4c,4e,4b,00,\
  00,44,00,03,00,04,00,ef,be,78,3c,5c,90,78,3c,2d,b8,14,00,00,00,45,00,6d,00,\
  65,00,72,00,67,00,65,00,6e,00,63,00,79,00,20,00,53,00,68,00,75,00,74,00,64,\
  00,6f,00,77,00,6e,00,2e,00,4c,00,4e,00,4b,00,00,00,1c,00,39,02,00,00,4e,00,\
  00,00,4e,00,3a,00,f6,02,00,00,78,3c,46,8f,20,08,48,49,42,45,52,4e,7e,31,2e,\
  4c,4e,4b,00,00,32,00,03,00,04,00,ef,be,78,3c,45,8f,78,3c,2d,b8,14,00,00,00,\
  48,00,69,00,62,00,65,00,72,00,6e,00,61,00,74,00,65,00,2e,00,4c,00,4e,00,4b,\
  00,00,00,1c,00,4f,01,00,00,4e,00,00,00,40,00,3a,00,23,02,00,00,78,3c,37,8e,\
  20,08,4c,6f,63,6b,2e,4c,4e,4b,00,00,28,00,03,00,04,00,ef,be,78,3c,36,8e,78,\
  3c,2d,b8,14,00,00,00,4c,00,6f,00,63,00,6b,00,2e,00,4c,00,4e,00,4b,00,00,00,\
  18,00,eb,01,00,00,4e,00,00,00,46,00,3a,00,0f,03,00,00,78,3c,78,8e,20,08,4c,\
  6f,67,6f,66,66,2e,4c,4e,4b,00,00,2c,00,03,00,04,00,ef,be,78,3c,37,8e,78,3c,\
  2d,b8,14,00,00,00,4c,00,6f,00,67,00,6f,00,66,00,66,00,2e,00,4c,00,4e,00,4b,\
  00,00,00,1a,00,87,02,00,00,4e,00,00,00,48,00,3a,00,13,03,00,00,78,3c,78,8e,\
  20,08,52,65,73,74,61,72,74,2e,4c,4e,4b,00,2e,00,03,00,04,00,ef,be,78,3c,37,\
  8e,78,3c,2d,b8,14,00,00,00,52,00,65,00,73,00,74,00,61,00,72,00,74,00,2e,00,\
  4c,00,4e,00,4b,00,00,00,1a,00,d5,02,00,00,4e,00,00,00,4c,00,3a,00,17,03,00,\
  00,78,3c,78,8e,20,08,53,68,75,74,64,6f,77,6e,2e,4c,4e,4b,00,00,30,00,03,00,\
  04,00,ef,be,78,3c,37,8e,78,3c,2d,b8,14,00,00,00,53,00,68,00,75,00,74,00,64,\
  00,6f,00,77,00,6e,00,2e,00,4c,00,4e,00,4b,00,00,00,1c,00,9d,01,00,00,4e,00,\
  00,00,48,00,3a,00,ee,02,00,00,78,3c,45,8f,20,08,53,74,61,6e,64,62,79,2e,4c,\
  4e,4b,00,2e,00,03,00,04,00,ef,be,78,3c,44,8f,78,3c,2d,b8,14,00,00,00,53,00,\
  74,00,61,00,6e,00,64,00,62,00,79,00,2e,00,4c,00,4e,00,4b,00,00,00,1a,00,17,\
  00,00,00,7e,01,00,00,60,00,3a,00,e8,05,00,00,78,3c,e8,90,20,08,56,4d,57,41,\
  52,45,7e,31,2e,4c,4e,4b,00,00,44,00,03,00,04,00,ef,be,78,3c,e8,90,78,3c,2d,\
  b8,14,00,00,00,56,00,4d,00,77,00,61,00,72,00,65,00,20,00,57,00,6f,00,72,00,\
  6b,00,73,00,74,00,61,00,74,00,69,00,6f,00,6e,00,2e,00,6c,00,6e,00,6b,00,00,\
  00,1c,00,17,00,00,00,7e,01,00,00,00,00,00,00
"FFlags"=dword:00000224
"ScrollPos720x400(1).x"=dword:00000000
"ScrollPos720x400(1).y"=dword:00000000
"ItemPos720x400(1)"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,18,00,\
  00,00,02,00,00,00,14,00,1f,48,ba,8f,0d,45,25,ad,d0,11,98,a8,08,00,36,1b,11,\
  03,18,00,00,00,5e,00,00,00,14,00,1f,50,e0,4f,d0,20,ea,3a,69,10,a2,d8,08,00,\
  2b,30,30,9d,18,00,00,00,ba,00,00,00,14,00,1f,58,60,2c,8d,20,ea,3a,69,10,a2,\
  d7,08,00,2b,30,30,9d,48,02,00,00,16,01,00,00,14,00,1f,60,40,f0,5f,64,81,50,\
  1b,10,9f,08,00,aa,00,2f,95,4e,18,00,00,00,16,01,00,00,14,00,1f,68,80,53,1c,\
  87,a0,42,69,10,a2,ea,08,00,2b,30,30,9d,18,00,00,00,16,01,00,00,00,00,00,00
Taskbar.HideInactiveIcons.Disable.REG

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoAutoTrayNotify"=dword:00000001
Taskbar.Position.AutomaticHide.REG

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2]
"Settings"=hex:28,00,00,00,ff,ff,ff,ff,03,00,00,00,00,00,00,00,64,00,00,00,21,\
  00,00,00,fe,ff,ff,ff,fe,ff,ff,ff,62,00,00,00,02,03,00,00

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2]
"Settings"=hex:28,00,00,00,ff,ff,ff,ff,03,00,00,00,00,00,00,00,64,00,00,00,21,\
  00,00,00,fe,ff,ff,ff,fe,ff,ff,ff,62,00,00,00,02,03,00,00
Taskbar.QuickLaunch.Enable.REG

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]
"Toolbars"=hex:11,00,00,00,00,00,00,00
"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,03,00,00,00,00,00,00,00,b0,e2,2b,d8,\
  64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,11,00,00,1a,00,00,00,01,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,00,\
  00,00,c0,00,00,00,00,00,00,46,81,00,00,00,30,08,00,00,10,a3,c5,fd,a5,1c,ca,\
  01,a2,11,c5,ec,f1,22,ca,01,9c,d6,2d,75,15,1d,ca,01,00,00,00,00,00,00,00,00,\
  01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,89,01,14,00,1f,50,e0,4f,d0,\
  20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,2f,45,3a,5c,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,36,00,31,00,00,00,00,00,0e,3b,16,8c,\
  10,08,41,44,4d,49,4e,00,22,00,03,00,04,00,ef,be,0e,3b,d9,2e,16,3b,93,33,14,\
  00,00,00,41,00,44,00,4d,00,49,00,4e,00,00,00,14,00,30,00,31,00,00,00,00,00,\
  0e,3b,ce,32,10,08,56,49,50,00,1e,00,03,00,04,00,ef,be,0e,3b,01,31,16,3b,93,\
  33,14,00,00,00,56,00,49,00,50,00,00,00,12,00,36,00,31,00,00,00,00,00,0e,3b,\
  60,31,10,08,4d,53,45,4e,56,00,22,00,03,00,04,00,ef,be,0e,3b,01,31,16,3b,a9,\
  2b,14,00,00,00,4d,00,53,00,45,00,4e,00,56,00,00,00,14,00,50,00,31,00,00,00,\
  00,00,0e,3b,3b,94,12,08,41,50,50,4c,49,43,7e,31,00,00,38,00,03,00,04,00,ef,\
  be,0e,3b,60,31,16,3b,a9,2b,14,00,00,00,41,00,70,00,70,00,6c,00,69,00,63,00,\
  61,00,74,00,69,00,6f,00,6e,00,20,00,44,00,61,00,74,00,61,00,00,00,18,00,21,\
  00,31,00,00,00,00,00,c5,22,9d,91,10,00,4d,69,63,72,6f,73,6f,66,74,00,4d,49,\
  43,52,4f,53,7e,31,00,29,00,31,00,00,00,00,00,d3,22,32,a6,10,00,49,6e,74,65,\
  72,6e,65,74,20,45,78,70,6c,6f,72,65,72,00,49,4e,54,45,52,4e,7e,31,00,24,00,\
  31,00,00,00,00,00,db,22,76,ba,10,00,51,75,69,63,6b,20,4c,61,75,6e,63,68,00,\
  51,55,49,43,4b,4c,7e,31,00,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,19,01,\
  00,00,60,00,00,00,03,00,00,a0,58,00,00,00,00,00,00,00,65,64,2d,64,65,6d,6f,\
  2d,30,00,00,00,00,00,00,00,28,9d,f1,39,4b,75,05,4c,ab,03,ae,44,f9,dd,2a,b7,\
  f6,92,4d,33,0a,89,de,11,a2,8e,00,0c,29,1c,ef,ec,28,9d,f1,39,4b,75,05,4c,ab,\
  03,ae,44,f9,dd,2a,b7,f6,92,4d,33,0a,89,de,11,a2,8e,00,0c,29,1c,ef,ec,00,00,\
  00,00,08,00,00,00,02,00,00,00,06,03,00,00,01,00,00,00,07,00,00,00,72,00,00,\
  00,00,00,00,00,64,00,32,00,4f,00,00,00,0e,3b,23,11,20,08,42,55,52,45,41,55,\
  7e,31,2e,53,43,46,00,00,48,00,03,00,04,00,ef,be,0e,3b,60,31,16,3b,ec,2b,14,\
  00,00,00,42,00,75,00,72,00,65,00,61,00,75,00,62,00,6c,00,61,00,64,00,20,00,\
  77,00,65,00,65,00,72,00,67,00,65,00,76,00,65,00,6e,00,2e,00,73,00,63,00,66,\
  00,00,00,1c,00,00,00,00,00,00,00,92,00,00,00,04,00,00,00,84,00,32,00,0b,03,\
  00,00,0e,3b,24,11,20,08,44,45,49,4e,54,45,7e,31,2e,4c,4e,4b,00,00,68,00,03,\
  00,04,00,ef,be,0e,3b,60,31,16,3b,ec,2b,14,00,00,00,44,00,65,00,20,00,49,00,\
  6e,00,74,00,65,00,72,00,6e,00,65,00,74,00,20,00,45,00,78,00,70,00,6c,00,6f,\
  00,72,00,65,00,72,00,2d,00,62,00,72,00,6f,00,77,00,73,00,65,00,72,00,20,00,\
  73,00,74,00,61,00,72,00,74,00,65,00,6e,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,\
  00,00,00,00,00,00,00,64,00,00,00,01,00,00,00,56,00,32,00,68,00,00,00,11,39,\
  8e,95,20,08,44,45,5a,45,43,4f,7e,31,2e,4c,4e,4b,00,00,3a,00,03,00,04,00,ef,\
  be,0e,3b,9b,9b,16,3b,ec,2b,14,00,00,00,44,00,65,00,7a,00,65,00,20,00,63,00,\
  6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,\
  00,00,00,00,00,00,00,68,00,00,00,03,00,00,00,5a,00,32,00,2d,01,00,00,11,39,\
  8e,95,20,08,4d,49,4a,4e,44,4f,7e,31,2e,4c,4e,4b,00,00,3e,00,03,00,04,00,ef,\
  be,0e,3b,9b,9b,16,3b,ec,2b,14,00,00,00,4d,00,69,00,6a,00,6e,00,20,00,64,00,\
  6f,00,63,00,75,00,6d,00,65,00,6e,00,74,00,65,00,6e,00,2e,00,6c,00,6e,00,6b,\
  00,00,00,1c,00,00,00,00,00,00,00,72,00,00,00,02,00,00,00,64,00,32,00,68,00,\
  00,00,11,39,8e,95,20,08,4d,49,4a,4e,4e,45,7e,31,2e,4c,4e,4b,00,00,48,00,03,\
  00,04,00,ef,be,0e,3b,9b,9b,16,3b,ec,2b,14,00,00,00,4d,00,69,00,6a,00,6e,00,\
  20,00,6e,00,65,00,74,00,77,00,65,00,72,00,6b,00,6c,00,6f,00,63,00,61,00,74,\
  00,69,00,65,00,73,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,00,00,00,00,\
  5e,00,00,00,05,00,00,00,50,00,32,00,68,00,00,00,11,39,91,95,20,08,50,52,55,\
  4c,4c,45,7e,31,2e,4c,4e,4b,00,00,34,00,03,00,04,00,ef,be,0e,3b,9b,9b,16,3b,\
  ec,2b,14,00,00,00,50,00,72,00,75,00,6c,00,6c,00,65,00,6e,00,62,00,61,00,6b,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,00,00,00,00,5a,00,00,00,06,00,\
  00,00,4c,00,32,00,8b,02,00,00,0e,3b,fb,38,20,08,53,68,61,72,65,61,7a,61,2e,\
  6c,6e,6b,00,00,30,00,03,00,04,00,ef,be,0e,3b,fb,38,16,3b,ec,2b,14,00,00,00,\
  53,00,68,00,61,00,72,00,65,00,61,00,7a,00,61,00,2e,00,6c,00,6e,00,6b,00,00,\
  00,1c,00,00,00,00,00,00,00,43,00,00,00,60,07,00,00,00,00,00,00,17,00,00,00,\
  00,00,00,00,00,00,00,00,5a,00,00,00,00,00,00,00,01,00,00,00,01,00,00,00,aa,\
  4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,24,02,00,00,60,0d,00,00,00,00,\
  00,00,1a,00,00,00,00,00,00,00,00,00,00,00,5a,00,00,00,00,00,00,00,01,00,00,\
  00,02,00,00,00,8b,8a,0d,54,3f,1c,32,4e,81,32,53,0f,6a,50,20,90,1b,00,00,00,\
  60,05,00,00,00,00,00,00,18,00,00,00,00,00,00,00,00,00,00,00,5a,00,00,00,00,\
  00,00,00,01,00,00,00
"Default Taskbar"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,\
  d8,64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,01,00,00,1a,00,00,00,\
  01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,\
  00,00,00,c0,00,00,00,00,00,00,46,83,00,00,00,10,00,00,00,a0,b0,48,5e,89,8d,\
  bd,01,00,d8,9e,e4,2a,8d,bd,01,00,45,fe,5e,89,8d,bd,01,00,00,00,00,00,00,00,\
  00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,13,01,14,00,1f,0f,e0,4f,\
  d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,23,44,3a,5c,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,cd,97,15,00,31,00,00,00,00,00,af,24,5c,\
  b9,10,80,57,69,6e,6e,74,00,00,20,00,31,00,00,00,00,00,af,24,a3,b9,10,00,50,\
  72,6f,66,69,6c,65,73,00,50,52,4f,46,49,4c,45,53,00,19,00,31,00,00,00,00,00,\
  c1,24,08,92,10,00,69,65,35,30,30,2e,30,30,30,00,00,28,00,31,00,00,00,00,00,\
  c1,24,08,92,10,00,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,00,41,50,\
  50,4c,49,43,7e,31,00,21,00,31,00,00,00,00,00,c5,22,9d,91,10,00,4d,69,63,72,\
  6f,73,6f,66,74,00,4d,49,43,52,4f,53,7e,31,00,29,00,31,00,00,00,00,00,d3,22,\
  32,a6,10,00,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,00,49,4e,54,\
  45,52,4e,7e,31,00,24,00,31,00,00,00,00,00,db,22,76,ba,10,00,51,75,69,63,6b,\
  20,4c,61,75,6e,63,68,00,51,55,49,43,4b,4c,7e,31,00,00,00,8d,00,00,00,1c,00,\
  00,00,01,00,00,00,1c,00,00,00,36,00,00,00,0d,f0,ad,ba,8c,00,00,00,1a,00,00,\
  00,03,00,00,00,e7,18,2d,23,10,00,00,00,49,45,35,30,30,5f,58,31,43,00,43,3a,\
  5c,57,49,4e,4e,54,5c,50,72,6f,66,69,6c,65,73,5c,49,45,35,30,30,2e,30,30,30,\
  5c,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,5c,4d,69,63,72,6f,73,6f,\
  66,74,5c,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,5c,51,75,69,63,\
  6b,20,4c,61,75,6e,63,68,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,a3,00,00,\
  00,00,00,00,00,08,00,00,00,02,00,00,00,cc,00,00,00,01,00,00,00,03,00,00,00,\
  4a,00,00,00,01,00,00,00,40,00,32,00,e6,01,00,00,c4,24,15,9f,20,00,4c,61,75,\
  6e,63,68,20,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,20,42,72,6f,\
  77,73,65,72,2e,6c,6e,6b,00,4c,41,55,4e,43,48,7e,32,2e,4c,4e,4b,00,00,00,40,\
  00,00,00,02,00,00,00,36,00,32,00,48,02,00,00,c4,24,15,9f,20,00,4c,61,75,6e,\
  63,68,20,4f,75,74,6c,6f,6f,6b,20,45,78,70,72,65,73,73,2e,6c,6e,6b,00,4c,41,\
  55,4e,43,48,7e,31,2e,4c,4e,4b,00,00,00,36,00,00,00,00,00,00,00,2c,00,32,00,\
  51,00,00,00,ec,22,46,39,20,00,53,68,6f,77,20,44,65,73,6b,74,6f,70,2e,73,63,\
  66,00,53,48,4f,57,44,45,7e,31,2e,53,43,46,00,00,00,52,00,00,00,e0,00,00,00,\
  00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,\
  00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,37,02,\
  00,00,e0,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,\
  00,00,00,00,00,01,00,00,00

[HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]
"Toolbars"=hex:11,00,00,00,00,00,00,00
"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,03,00,00,00,00,00,00,00,b0,e2,2b,d8,\
  64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,11,00,00,1a,00,00,00,01,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,00,\
  00,00,c0,00,00,00,00,00,00,46,81,00,00,00,30,08,00,00,10,a3,c5,fd,a5,1c,ca,\
  01,a2,11,c5,ec,f1,22,ca,01,9c,d6,2d,75,15,1d,ca,01,00,00,00,00,00,00,00,00,\
  01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,89,01,14,00,1f,50,e0,4f,d0,\
  20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,2f,45,3a,5c,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,36,00,31,00,00,00,00,00,0e,3b,16,8c,\
  10,08,41,44,4d,49,4e,00,22,00,03,00,04,00,ef,be,0e,3b,d9,2e,16,3b,93,33,14,\
  00,00,00,41,00,44,00,4d,00,49,00,4e,00,00,00,14,00,30,00,31,00,00,00,00,00,\
  0e,3b,ce,32,10,08,56,49,50,00,1e,00,03,00,04,00,ef,be,0e,3b,01,31,16,3b,93,\
  33,14,00,00,00,56,00,49,00,50,00,00,00,12,00,36,00,31,00,00,00,00,00,0e,3b,\
  60,31,10,08,4d,53,45,4e,56,00,22,00,03,00,04,00,ef,be,0e,3b,01,31,16,3b,a9,\
  2b,14,00,00,00,4d,00,53,00,45,00,4e,00,56,00,00,00,14,00,50,00,31,00,00,00,\
  00,00,0e,3b,3b,94,12,08,41,50,50,4c,49,43,7e,31,00,00,38,00,03,00,04,00,ef,\
  be,0e,3b,60,31,16,3b,a9,2b,14,00,00,00,41,00,70,00,70,00,6c,00,69,00,63,00,\
  61,00,74,00,69,00,6f,00,6e,00,20,00,44,00,61,00,74,00,61,00,00,00,18,00,21,\
  00,31,00,00,00,00,00,c5,22,9d,91,10,00,4d,69,63,72,6f,73,6f,66,74,00,4d,49,\
  43,52,4f,53,7e,31,00,29,00,31,00,00,00,00,00,d3,22,32,a6,10,00,49,6e,74,65,\
  72,6e,65,74,20,45,78,70,6c,6f,72,65,72,00,49,4e,54,45,52,4e,7e,31,00,24,00,\
  31,00,00,00,00,00,db,22,76,ba,10,00,51,75,69,63,6b,20,4c,61,75,6e,63,68,00,\
  51,55,49,43,4b,4c,7e,31,00,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,19,01,\
  00,00,60,00,00,00,03,00,00,a0,58,00,00,00,00,00,00,00,65,64,2d,64,65,6d,6f,\
  2d,30,00,00,00,00,00,00,00,28,9d,f1,39,4b,75,05,4c,ab,03,ae,44,f9,dd,2a,b7,\
  f6,92,4d,33,0a,89,de,11,a2,8e,00,0c,29,1c,ef,ec,28,9d,f1,39,4b,75,05,4c,ab,\
  03,ae,44,f9,dd,2a,b7,f6,92,4d,33,0a,89,de,11,a2,8e,00,0c,29,1c,ef,ec,00,00,\
  00,00,08,00,00,00,02,00,00,00,06,03,00,00,01,00,00,00,07,00,00,00,72,00,00,\
  00,00,00,00,00,64,00,32,00,4f,00,00,00,0e,3b,23,11,20,08,42,55,52,45,41,55,\
  7e,31,2e,53,43,46,00,00,48,00,03,00,04,00,ef,be,0e,3b,60,31,16,3b,ec,2b,14,\
  00,00,00,42,00,75,00,72,00,65,00,61,00,75,00,62,00,6c,00,61,00,64,00,20,00,\
  77,00,65,00,65,00,72,00,67,00,65,00,76,00,65,00,6e,00,2e,00,73,00,63,00,66,\
  00,00,00,1c,00,00,00,00,00,00,00,92,00,00,00,04,00,00,00,84,00,32,00,0b,03,\
  00,00,0e,3b,24,11,20,08,44,45,49,4e,54,45,7e,31,2e,4c,4e,4b,00,00,68,00,03,\
  00,04,00,ef,be,0e,3b,60,31,16,3b,ec,2b,14,00,00,00,44,00,65,00,20,00,49,00,\
  6e,00,74,00,65,00,72,00,6e,00,65,00,74,00,20,00,45,00,78,00,70,00,6c,00,6f,\
  00,72,00,65,00,72,00,2d,00,62,00,72,00,6f,00,77,00,73,00,65,00,72,00,20,00,\
  73,00,74,00,61,00,72,00,74,00,65,00,6e,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,\
  00,00,00,00,00,00,00,64,00,00,00,01,00,00,00,56,00,32,00,68,00,00,00,11,39,\
  8e,95,20,08,44,45,5a,45,43,4f,7e,31,2e,4c,4e,4b,00,00,3a,00,03,00,04,00,ef,\
  be,0e,3b,9b,9b,16,3b,ec,2b,14,00,00,00,44,00,65,00,7a,00,65,00,20,00,63,00,\
  6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,\
  00,00,00,00,00,00,00,68,00,00,00,03,00,00,00,5a,00,32,00,2d,01,00,00,11,39,\
  8e,95,20,08,4d,49,4a,4e,44,4f,7e,31,2e,4c,4e,4b,00,00,3e,00,03,00,04,00,ef,\
  be,0e,3b,9b,9b,16,3b,ec,2b,14,00,00,00,4d,00,69,00,6a,00,6e,00,20,00,64,00,\
  6f,00,63,00,75,00,6d,00,65,00,6e,00,74,00,65,00,6e,00,2e,00,6c,00,6e,00,6b,\
  00,00,00,1c,00,00,00,00,00,00,00,72,00,00,00,02,00,00,00,64,00,32,00,68,00,\
  00,00,11,39,8e,95,20,08,4d,49,4a,4e,4e,45,7e,31,2e,4c,4e,4b,00,00,48,00,03,\
  00,04,00,ef,be,0e,3b,9b,9b,16,3b,ec,2b,14,00,00,00,4d,00,69,00,6a,00,6e,00,\
  20,00,6e,00,65,00,74,00,77,00,65,00,72,00,6b,00,6c,00,6f,00,63,00,61,00,74,\
  00,69,00,65,00,73,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,00,00,00,00,\
  5e,00,00,00,05,00,00,00,50,00,32,00,68,00,00,00,11,39,91,95,20,08,50,52,55,\
  4c,4c,45,7e,31,2e,4c,4e,4b,00,00,34,00,03,00,04,00,ef,be,0e,3b,9b,9b,16,3b,\
  ec,2b,14,00,00,00,50,00,72,00,75,00,6c,00,6c,00,65,00,6e,00,62,00,61,00,6b,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,00,00,00,00,5a,00,00,00,06,00,\
  00,00,4c,00,32,00,8b,02,00,00,0e,3b,fb,38,20,08,53,68,61,72,65,61,7a,61,2e,\
  6c,6e,6b,00,00,30,00,03,00,04,00,ef,be,0e,3b,fb,38,16,3b,ec,2b,14,00,00,00,\
  53,00,68,00,61,00,72,00,65,00,61,00,7a,00,61,00,2e,00,6c,00,6e,00,6b,00,00,\
  00,1c,00,00,00,00,00,00,00,43,00,00,00,60,07,00,00,00,00,00,00,17,00,00,00,\
  00,00,00,00,00,00,00,00,5a,00,00,00,00,00,00,00,01,00,00,00,01,00,00,00,aa,\
  4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,24,02,00,00,60,0d,00,00,00,00,\
  00,00,1a,00,00,00,00,00,00,00,00,00,00,00,5a,00,00,00,00,00,00,00,01,00,00,\
  00,02,00,00,00,8b,8a,0d,54,3f,1c,32,4e,81,32,53,0f,6a,50,20,90,1b,00,00,00,\
  60,05,00,00,00,00,00,00,18,00,00,00,00,00,00,00,00,00,00,00,5a,00,00,00,00,\
  00,00,00,01,00,00,00
"Default Taskbar"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,\
  d8,64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,01,00,00,1a,00,00,00,\
  01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,\
  00,00,00,c0,00,00,00,00,00,00,46,83,00,00,00,10,00,00,00,a0,b0,48,5e,89,8d,\
  bd,01,00,d8,9e,e4,2a,8d,bd,01,00,45,fe,5e,89,8d,bd,01,00,00,00,00,00,00,00,\
  00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,13,01,14,00,1f,0f,e0,4f,\
  d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,23,44,3a,5c,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,cd,97,15,00,31,00,00,00,00,00,af,24,5c,\
  b9,10,80,57,69,6e,6e,74,00,00,20,00,31,00,00,00,00,00,af,24,a3,b9,10,00,50,\
  72,6f,66,69,6c,65,73,00,50,52,4f,46,49,4c,45,53,00,19,00,31,00,00,00,00,00,\
  c1,24,08,92,10,00,69,65,35,30,30,2e,30,30,30,00,00,28,00,31,00,00,00,00,00,\
  c1,24,08,92,10,00,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,00,41,50,\
  50,4c,49,43,7e,31,00,21,00,31,00,00,00,00,00,c5,22,9d,91,10,00,4d,69,63,72,\
  6f,73,6f,66,74,00,4d,49,43,52,4f,53,7e,31,00,29,00,31,00,00,00,00,00,d3,22,\
  32,a6,10,00,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,00,49,4e,54,\
  45,52,4e,7e,31,00,24,00,31,00,00,00,00,00,db,22,76,ba,10,00,51,75,69,63,6b,\
  20,4c,61,75,6e,63,68,00,51,55,49,43,4b,4c,7e,31,00,00,00,8d,00,00,00,1c,00,\
  00,00,01,00,00,00,1c,00,00,00,36,00,00,00,0d,f0,ad,ba,8c,00,00,00,1a,00,00,\
  00,03,00,00,00,e7,18,2d,23,10,00,00,00,49,45,35,30,30,5f,58,31,43,00,43,3a,\
  5c,57,49,4e,4e,54,5c,50,72,6f,66,69,6c,65,73,5c,49,45,35,30,30,2e,30,30,30,\
  5c,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,5c,4d,69,63,72,6f,73,6f,\
  66,74,5c,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,5c,51,75,69,63,\
  6b,20,4c,61,75,6e,63,68,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,a3,00,00,\
  00,00,00,00,00,08,00,00,00,02,00,00,00,cc,00,00,00,01,00,00,00,03,00,00,00,\
  4a,00,00,00,01,00,00,00,40,00,32,00,e6,01,00,00,c4,24,15,9f,20,00,4c,61,75,\
  6e,63,68,20,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,20,42,72,6f,\
  77,73,65,72,2e,6c,6e,6b,00,4c,41,55,4e,43,48,7e,32,2e,4c,4e,4b,00,00,00,40,\
  00,00,00,02,00,00,00,36,00,32,00,48,02,00,00,c4,24,15,9f,20,00,4c,61,75,6e,\
  63,68,20,4f,75,74,6c,6f,6f,6b,20,45,78,70,72,65,73,73,2e,6c,6e,6b,00,4c,41,\
  55,4e,43,48,7e,31,2e,4c,4e,4b,00,00,00,36,00,00,00,00,00,00,00,2c,00,32,00,\
  51,00,00,00,ec,22,46,39,20,00,53,68,6f,77,20,44,65,73,6b,74,6f,70,2e,73,63,\
  66,00,53,48,4f,57,44,45,7e,31,2e,53,43,46,00,00,00,52,00,00,00,e0,00,00,00,\
  00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,\
  00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,37,02,\
  00,00,e0,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,\
  00,00,00,00,00,01,00,00,00
Console.REG

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:00000000
"ColorTable01"=dword:00800000
"ColorTable02"=dword:00008000
"ColorTable03"=dword:00808000
"ColorTable04"=dword:00000080
"ColorTable05"=dword:00800080
"ColorTable06"=dword:00008080
"ColorTable07"=dword:00c0c0c0
"ColorTable08"=dword:00808080
"ColorTable09"=dword:00ff0000
"ColorTable10"=dword:0000ff00
"ColorTable11"=dword:00ffff00
"ColorTable12"=dword:000000ff
"ColorTable13"=dword:00ff00ff
"ColorTable14"=dword:0000ffff
"ColorTable15"=dword:00ffffff
"CursorSize"=dword:00000019
"FaceName"=""
"FontFamily"=dword:00000000
"FontSize"=dword:00000000
"FontWeight"=dword:00000000
"FullScreen"=dword:00000000
"HistoryBufferSize"=dword:00000032
"InsertMode"=dword:00000001
"LoadConIme"=dword:00000001
"NumberOfHistoryBuffers"=dword:00000004
"PopupColors"=dword:000000f5
"QuickEdit"=dword:00000000
"ScreenBufferSize"=dword:012c0050
"ScreenColors"=dword:0000000b
"PopupColors"=dword:00000005
"WindowPosition"=dword:00640064
"HistoryNoDup"=dword:00000000
"WindowSize"=dword:00190050
"CurrentPage"=dword:00000002

[HKEY_USERS\.DEFAULT\Console]
"ColorTable00"=dword:00000000
"ColorTable01"=dword:00800000
"ColorTable02"=dword:00008000
"ColorTable03"=dword:00808000
"ColorTable04"=dword:00000080
"ColorTable05"=dword:00800080
"ColorTable06"=dword:00008080
"ColorTable07"=dword:00c0c0c0
"ColorTable08"=dword:00808080
"ColorTable09"=dword:00ff0000
"ColorTable10"=dword:0000ff00
"ColorTable11"=dword:00ffff00
"ColorTable12"=dword:000000ff
"ColorTable13"=dword:00ff00ff
"ColorTable14"=dword:0000ffff
"ColorTable15"=dword:00ffffff
"CursorSize"=dword:00000019
"FaceName"=""
"FontFamily"=dword:00000000
"FontSize"=dword:00000000
"FontWeight"=dword:00000000
"FullScreen"=dword:00000000
"HistoryBufferSize"=dword:00000032
"InsertMode"=dword:00000001
"LoadConIme"=dword:00000001
"NumberOfHistoryBuffers"=dword:00000004
"PopupColors"=dword:000000f5
"QuickEdit"=dword:00000000
"ScreenBufferSize"=dword:012c0050
"ScreenColors"=dword:0000000b
"PopupColors"=dword:00000005
"WindowPosition"=dword:00640064
"HistoryNoDup"=dword:00000000
"WindowSize"=dword:00190050
"CurrentPage"=dword:00000002
Folder.Options.REG

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ServerAdminUI"=dword:00000000
"Hidden"=dword:00000001
"ShowCompColor"=dword:00000001
"HideFileExt"=dword:00000000
"DontPrettyPath"=dword:00000000
"ShowInfoTip"=dword:00000001
"HideIcons"=dword:00000000
"MapNetDrvBtn"=dword:00000000
"WebView"=dword:00000001
"Filter"=dword:00000000
"SuperHidden"=dword:00000001
"SeparateProcess"=dword:00000000
"ListviewAlphaSelect"=dword:00000001
"ListviewShadow"=dword:00000001
"ListviewWatermark"=dword:00000001
"TaskbarAnimations"=dword:00000001
"StartMenuInit"=dword:00000002
"StartMenuAdminTools"="YES"
"NoNetCrawling"=dword:00000000
"ShowSuperHidden"=dword:00000001
"WebViewBarricade"=dword:00000001
"ClassicViewState"=dword:00000000
"FriendlyTree"=dword:00000000
"FolderContentsInfoTip"=dword:00000001
"DisableThumbnailCache"=dword:00000000
"PersistBrowsers"=dword:00000001

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ServerAdminUI"=dword:00000000
"Hidden"=dword:00000001
"ShowCompColor"=dword:00000001
"HideFileExt"=dword:00000000
"DontPrettyPath"=dword:00000000
"ShowInfoTip"=dword:00000001
"HideIcons"=dword:00000000
"MapNetDrvBtn"=dword:00000000
"WebView"=dword:00000001
"Filter"=dword:00000000
"SuperHidden"=dword:00000001
"SeparateProcess"=dword:00000000
"ListviewAlphaSelect"=dword:00000001
"ListviewShadow"=dword:00000001
"ListviewWatermark"=dword:00000001
"TaskbarAnimations"=dword:00000001
"StartMenuInit"=dword:00000002
"StartMenuAdminTools"="YES"
"NoNetCrawling"=dword:00000000
"ShowSuperHidden"=dword:00000001
"WebViewBarricade"=dword:00000001
"ClassicViewState"=dword:00000000
"FriendlyTree"=dword:00000000
"FolderContentsInfoTip"=dword:00000001
"DisableThumbnailCache"=dword:00000000
"PersistBrowsers"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa]
"ForceGuest"=dword:00000000
an example batch Desktop.CFG.CMD

Code: Select all

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Sjablon.Start (

@Echo Off &SetLocal EnableExtensions EnableDelayedExpansion

set "StandAlone.Sjablon.Version=009"

:: Sjablon.End )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Sjablon.App.Start (

set "APP=?"
set "GROUP=?"

:: Sjablon.App.End )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Sjablon.Start (

:INIT
Cls &echo. &set /p "?= Initializing :(" <nul
::(
   for %%! in ( TITLE ) do set "%%!=%~n0"

   title Install !TITLE!

   for %%! in ( FullPath.SCRIPT ) do    set "%%!=%~dp0\###" &set "%%!=!%%!:\\###=!" &set "%%!=!%%!:\###=!"
   for %%! in ( File.SCRIPT ) do       set "%%!=%~nx0
   for %%! in ( FileName.SCRIPT ) do    set "%%!=%~n0"

   for %%! in ( EDREG ) do set "%%!=HKLM\SOFTWARE\ED"

   for %%? in ( PRGM3TH ) do             for /f "skip=4 tokens=3* delims=   " %%! in ( '2^>nul Reg query "!EDREG!\DIR"                         /v "%%?"' ) do          set "%%?=%%!"
   for %%? in ( FullPath.StartMenu.Common_Programs ) do    for /f "skip=4 tokens=3* delims=   " %%! in ( '2^>nul Reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"    /v "Common Programs"    ' ) do    set "%%?=%%!"
   for %%? in ( FullPath.StartMenu.Common_Desktop ) do    for /f "skip=4 tokens=3* delims=   " %%! in ( '2^>nul Reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"    /v "Common Desktop"    ' ) do    set "%%?=%%!"
   for %%? in ( Desktop ) do             for /f "skip=4 tokens=3* delims=   " %%! in ( '2^>nul Reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"    /v "Desktop"' ) do       set "%%?=%%!"

   ::call :FullPath.Install.Get.By_RegRead__PRGM3TH_OnERROR_Read_UserInput
   ::call :FullPath.Install.Get.By_FileRead_INF
::)

:: Sjablon.End )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:MAIN
Cls &echo. &echo. :( Install !TITLE!
::(

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: App.Start (

   2>nul pushd "!FullPath.SCRIPT!\REG" &&(
      ::
      for /f "tokens=*" %%! in ( 'dir /a:-d /b /o:n "*.REG"'
      ) do (
         echo. &set "?=  :/ RegInject: %%!"          &set "?=!?:~0,70!" &set /p "?=!?!..." <nul
         regedit /s "%%!" &set /a ERR = !ErrorLevel! &if !ERR! gtr 0 call :EXIT !ERR!
         set /p "?= [OK]" <nul
      )

      popd
   )

   set "FullPathFile.1=!FullPath.SCRIPT!\CMD"
   set "Search.1=*.CMD"
   set "COMMAND.1="

   for /l %%? in ( 1, 1, 1
   ) do (
      set "Search=!Search.%%?!"

      pushd "!FullPathFile.%%?!"
      ::^(
         call :RunFile
         for /f "tokens=*" %%! in ( '2^>nul dir /a:d /b /o:n /s' ) do pushd "%%!" &call :RunFile &popd
      popd
      ::^)
      echo.>nul
   )

   echo. &set "?=  :/ Restart "Explorer.EXE""             &set "?=!?:~0,70!" &set /p "?=!?!..." <nul
   ::(
      >nul taskkill /im Explorer.EXE /f &&start Explorer.EXE
      set "?=  :/ Restart Explorer.EXE"             &set "?=!?:~0,70!" &set /p "?=!?!..." <nul
   ::
   set /p "?= [OK]" <nul &echo.
   ::)

:: App.End )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::
echo. &set /p "?= :) Installed !TITLE! [OK]" <nul &call :EXIT
::)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: App.Start (

:: App.End )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Sjablon.Start (

:Path.Get "FullPath:STRING/BYVAL" "RetVAR:STRING"
::
:: WARNING: DO NOT EVER PASS @PATH AS BYVAL ON MS PRODUCT; THIS IS A RESERVED VARIABLE !; CAUSES PROBLEMS LIKE Framedyn.dll not found on tasklist.exe !
::
:: Uses call
::
::(
   ::set "Debug.Sub=:Path.Get"
   ::(
      ::%Debug.Define% echo. inside :Path.Get  %1 %2
   ::)

   ::%Debug% "PROC PAR"
   ::(
      for %%! in ( § # ) do call set "%%!=%%~1%%" &shift

      for %%! in ( § ) do %DeQuote.IfEven% %%! &%Get.ByVal% %%!

      ::%Debug.Define% for %%! in ( § # ) do echo.%%!=!%%!!_
   ::)

   ::%Debug% "VALID"
   ::(
      for %%! in ( § # ) do                   if not defined %%!       %Set.ERR.VALID% /not_defined: "%%!"
   ::)

   ::%Debug% "Perform"
   ::(
      set "@=!§!\###" &set "@=!@:\\###=!" &set "@=!@:\###=!"
      ::%Debug.Define% for %%! in ( @ ) do echo. %%!=!%%!!_

      :Path.Get.LOOP
      ::(
         if defined @ set "é=!@:*\=!" &if /i not ["!@!"] == ["!é!"] set "@=!é!" &call :Path.Get.LOOP
      ::)

      set "!#!=!@!"
   ::)
::
::%Debug.Define% echo. !#!=!%#%!_ &echo. Outside :Path.Get &pause
goto :eof
::)

:FullPath.Install.Get.By_RegRead__PRGM3TH_OnERROR_Read_UserInput
::(
   for %%! in ( FullPath.Install
   ) do (
      if defined PRGM3TH ( set "%%!=!PRGM3TH!\!GROUP!" ) else set "%%!=%*"

      if defined %%! (
         ::
         set "%%!=!%%!!\###" &set "%%!=!%%!:\\###=!" &set "%%!=!%%!:\###=!"

         for /f "tokens=1 delims=:" %%! in ( "!%%!!" ) do set "DRIVE=%%!"

         pushd "!DRIVE!:\" &&popd ||( echo. &echo. @FullPath.Install: "!%%!!" &echo. pushd DRIVE:\ "!DRIVE!:\" [ERROR] &call :EXIT 1 )

      ) else (

         cls
         echo.
         echo.!FullPath.SCRIPT!^>%~nx0 %*
         echo.
         echo.USAGE:
         echo.
         echo.%~nx0 @FullPath.Install
         echo.
         echo.You can call %~nx0 without giving the @FullPath.Install parameter by adding the value
         echo.@PRGM3TH under "!EDREG!\DIR" pointing to your @program_files dir.
         echo.
      )
   )
::
goto :eof
::)

:FullPath.Install.Get.By_FileRead_INF
::(
   for %%! in ( FullPath.Install ) do for %%? in ( "!FullPath.SCRIPT!\!TITLE!.INF"
   ) do (
      for /f "tokens=2* delims==" %%? in ( 'findstr /i "DIR=" %%?' ) do set "%%!=%%?"

      if not defined %%!             echo. :( findstr "DIR=" not found in file: %%? [ERROR] &call :EXIT 1
   )
::
goto :eof
::)

:RunFile
::(
   for /f "tokens=*" %%! in ( '2^>nul dir /a:-d /b /o:n "!Search!"' ) do if not ["%%!"] == ["!File.SCRIPT!"] (
      ::
      echo. &set "?=  :/ Install: %%!" &set "?=!?:~0,70!" &set /p "?=!?!..." <nul
      ::^(
         start "CMD" /low /wait "%%!" !COMMAND.%%?!
      ::
      set /p "?= [OK]" <nul
      ::^)
      echo.>nul
   )
::
goto :eof
::)

:EXIT
::(
   set "COMMAND=" &set "ERR=%~1" &if defined ERR ( if !ERR! gtr 0 set "COMMAND=set /p "?= [ERROR:!ERR!]" <nul &echo. &pause" ) else set /a ERR = 0

   EndLocal &>nul 2>&1 ping 0.0.0.0 %COMMAND% &exit %ERR%
::)

:: Sjablon.End )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::Saving icon positions ()
::(
-export [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop] to OLD.REG
-adjust your icon positions
-logoff
-logon
-export [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop] to NEW.REG
-fc compare, if there are no changes this means that new settings have failed ! (

-first check whether an MS update causes things not to work !

-export [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags]
This may not always work on all users.
)
::)

::Verifying icon positions ()
::(
-adjust your icon positions
-inject @FileName.REG
-kill processstructure of explorer.
-restart explorer
::)

Hope it helps. :wink:

Post Reply