Jump to content

zappelectric19

Member
  • Posts

    15
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by zappelectric19

  1. Thank you "CoffeeFiend" for taking the time to read my post and to offer your wise suggestions.
  2. My Problem was solved on another forum and the script provided there worked perfectly! Here is the link
  3. I had forgotten my "Folder Marker.BAT" file makes the folder a system folder. How would your script be written to copy a folder to multiple directories setting the attributes of the copied folder in each directory? This is how I assign distributable custom icons to folders First I create the custom icon and copy it to a folder named "Folder Marker" where I have a system file "desktop.ini" file and a "Folder Marker.BAT file. FolderMarker.BAT @ECHO OFF echo "Enter FolderPath" set /p FolderPath= ATTRIB -h -s "%FolderPath%\FolderMarker.ico" DEL /F /Q "%FolderPath%\FolderMarker.ico" ATTRIB -h -s "%FolderPath%\Desktop.ini" DEL /F /Q "%FolderPath%\Desktop.ini" ren *ico FolderMarker.ico xxcopy Desktop.ini "%FolderPath%\" /H /YY xxcopy FolderMarker.ico "%FolderPath%\" /H /YY ATTRIB +s "%FolderPath%" ATTRIB +h +s "%FolderPath%\FolderMarker.ico" DEL /F /Q FolderMarker.ico exit "desktop.ini" [.ShellClassInfo] IconFile=FolderMarker.ico IconIndex=0 When I run the batch file it asks for the path of the folder for the custom icon, removes the attributes of the "desktop.ini" and "FolderMarker.ico", deletes them, renames my chosen icon as "FolderMarker.ico", copies both the renamed icon and the "desktop.ini" in the "Folder Marker" folder to the chosen folder, sets the attributes of the chosen folder to "s",sets the attributes of the copied icon in the chosen folder to "s" and "h", and then deletes the "FolderMarker.ico" remaining in the "Folder Marker" folder. Since most of the folders I copy are system folders with custom icons, would making every folder and subfolder copied a system folder have an adverse effect if I used it for only copying folders with at the most 3 subfolders. Thank you for taking the time to help me.
  4. I have XP-Pro SP3 with Power Shell installed. I need a script I can drag and drop files and folders onto that will copy them maintaining the attributes of the source. Specifically most of my folders have distributable custom icons. Each folder contains both a "desktop.ini" file and an associated "FolderMarker.ico" the "desktop.ini" file points to. Both of these files have "system" and "hidden" attributes. In order for the folders to display the custom icons when copied to another computer these files have to keep the "system" attribute and I want the "hidden" attribute maintained as well. I haven't been able to do this using VBscript. I have to use XXcopy which doesn't allow me to copy by just dropping the folders on the script. (VBscript does allow me to copy by dropping items on the script but the copied folder icons are not distributable because the "system" and "hidden" attributes of the "desktop.ini" and "FolderMarker.ico" are lost when copied by that method. I would really appreciate a script to accomplish this. Below is the VBscript to which I refer. Thanks. On Error Resume Next Const OverwriteExisting = True Set objArgs = WScript.Arguments Set objFSO = CreateObject("Scripting.FileSystemObject") If objArgs.Count < 1 Then WScript.Quit End If For I = 0 to objArgs.Count - 1 Arg = objArgs(I) objFSO.CopyFile Arg, "C:\Program Files\", OverwriteExisting objFSO.CopyFile Arg, "D:\0 aAPPS\00 a Install First\Program Files\", OverwriteExisting objFSO.CopyFolder Arg, "C:\Program Files\", OverwriteExisting objFSO.CopyFolder Arg, "D:\0 aAPPS\00 a Install First\Program Files\", OverwriteExisting Next WScript.Quit
  5. Nevermind, I figured out a way. If interested you can see how I did it here.
  6. I would like a way to toggle the enabling/disabling of FileMenu Toys by ShellExView. I would like to accomplish this by a click on a script or shortcut. Of course I know I can open ShellExView, highlight FileMenu Tools, and select disable from the context menu. I just want to do this with one click. OK so I'm lazy, I admit it!
  7. THANKS YOU SOLVED MY PROBLEM! THIS DOES EXACTLY WHAT I WANTED. I REALLY APPRECIATE YOUR HELP AND I APPRECIATE THE SUGGESTION FROM THE PREVIOUS POST
  8. Thank you but I am aware of that option and would prefer to have the choice of deleting to or skipping the recycle bin available by the context menu.
  9. I am running XP-Pro SP2. Does anyone know how I can add an item to the context menu allowing me to delete bypassing recycle bin. I want the context menu item to give the same result as holding down the"SHIFT" key when pressing "DEL" Thank You.
  10. Sure that would have been my first choice but I don't have the hardware to adapt my laptop's drive to my Desktop PC.
  11. CPU P4 2.0GHz RAM 512MB OS XP-Pro SP2 My laptop's CD drive is missing and I can't afford a replacement. The BIOS does not support usb booting. To install XP, I first load the 6 Microsoft SP2 diskettes which then allow me to install XP from the XP Setup CD in my external usb CD drive. I would like to be able to restore my C drive partition from an image created using Macrium Reflect. To do this I need to be able to boot BartPE from a CD drive. How can I make a diskette allowing me to to boot into BartPE, or other utilities, from my external usb CD drive? Thank you.
  12. Thanks for checking out what I said and for the "My Bad". I learned from you how to deal with things I have posted incorrectly. I found I couldn't delete the posts. So in the future I will replace the incorrect text with a "N/M". BTW what does "N/M" stand for? Now as for my "ContextMenuHandlers" request, I thank everyone who has taken the time to offer their help and suggestions. From the information presented here I can see making my own "ContextMenuHandler" requires a much greater knowledge of programming than the meager amount I possess. Rather than attempt to gain the necessary knowledge, I am going to abandon this project. It is way too complicated. Again I thank all of you.
  13. This cannot be done that way, you'll need to use the shell, not the shellex. shellex\ContextMenuHandlers is for using a CLSID to specify a DLL that in turn creates the context menu entry programmatically. This pic shows a normal shellex entry. Not sure what you are on about in your last post, you already know how to create a shell entry, you just don't know you know it. The only reason your first shell entry failed is because your batch file cannot use .scf files, not because the registry was done wrong. Capisce? ------------------------------------------------------- Want to bet I can't run a .scf file from a batch file? This BAT file --------------------------- start "" "C:\Program Files\Show Desktop\Show Desktop.scf" exit ---------------------------------- shows my desktop whenever it is clicked these reg entries --------------------- [HKEY_CLASSES_ROOT\Folder\shell\!Show Desktop] @="!Show Desktop" [HKEY_CLASSES_ROOT\Folder\shell\!Show Desktop\Command] @="C:\\Program Files\\Show Desktop\\Show Desktop.BAT" -------------------------- Allow me to show desktop from context menu when right clicking on a folder. Did you try your background shell registry keys? I did and as before when I add my own, the background context menu did not show the Show Desktop item. I would not have posted here if that had worked. Even though I can run Show Desktop.scf from a bat file and run that bat file from a context menu regardless of what you may believe, I use a vbs script which I convert into an exe file to add Show Desktop to my Folder and my File context menus
  14. ------------------------------------------------------ Check to see which file format or character encoding your text editor is set to. When mine is set to Unicode and the BAT files are saved that way they don't work. Did you copy this text: [shell] Command=2 IconFile="C:\Program Files\Show Desktop\Show Desktop.ico" [Taskbar] Command=ToggleDesktop amd save it as "Show Desktop.scf" in a folder named "Show Desktop" in your "Program Files Folder"? You can save it anywhere you want, but the BAT file must be coded with the correct path to "Show Desktop.scf" example: start "" "PATH TO FOLDER WHERE SAVED\Show Desktop.scf" Here is a vbs script to also toggle the desktop ToggleDesktop.vbs ------------------------------------ Option Explicit Dim objShell Set objShell = CreateObject("Shell.Application") objShell.ToggleDesktop Set objShell = Nothing -------------------------- Just now, I copied the above script with Notepad and saved it to my Desktop as "ToggleDesktop.vbs" (Without quotation marks of course. I then wrote the "ToggleDesktop.BAT" file below and saved it. The "C:\Documents and Settings\Administrator\Desktop\ToggleDesktop.vbs" is the path to the "ToggleDesktop.vbs" file on my desktop. I double clicked the BAT file and everything minimized! Try using this "ToggleDesktop.vbs" script instead of the "Show Desktop.scf" script. I think I read somewhere the "Show Desktop.scf" wasn't functioning on some XP SP3 machines. The vbs script is supposed to work on Win 98 through Windows 7. ToggleDesktop.BAT ============================================================================================ start "" "C:\Documents and Settings\Administrator\Desktop\ToggleDesktop.vbs" exit =================================================================================== For the Record: I know I can Show Desktop other ways, that is not my point or quest. I am quite aware of the Show Desktop on the Quick Launch Bar. That is where I got the script. I am also aware of the WinKey+D and many other shortcuts to minimize all or show desktop. I want to find out how to add an item to the Background context menu. Although I would like the Show Desktop item, I really don't care if the item started "my_momma's.exe" I mainly would like to learn how to do it. I figure If I can find out how to run an application from that menu, then I could run a bunch of scripts if I chose by converting them to exe files. There are items added there by external applications I have installed.So if they can do then I should be able to as well.
  15. I have XP-Pro SP2 (x86) and XP-Pro SP3 (x86) on my laptop and desktop respectively. How can I add a subkey to the "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers" key? I want to add "Show Desktop" to the "Background context menu"as I have done for the "HKEY_CLASSES_ROOT\Folder\shell" and the "HKEY_CLASSES_ROOT\*\shell" Registry keys. But this failed. I am thinking I have to make my own "ContextMenuHandlers" subkey because the subkeys there such as the one below do add items to the Background Context Menu "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New" So maybe someone here could show me how to create a "ContextMenuHandlers" subkey to add "Show Desktop" to the Background Context Menu.. Thank you. How can I add this "Show Desktop" item to the Background Context Menu displayed wehen I right click on an empty space either on the desktop or in a Windows Explorer window? I used the method outlined below to add the "Show Desktop" to the file and folders context menus' 1. I wrote "Show Desktop.scf"and placed it in "C:\Program Files\Show Desktop" 2. I wrote "Show Desktop.BAT"and placed it in "C:\Program Files\Show Desktop" 3. I wrote "Show Desktop BOTH.reg", ran an merged it into the Registry. This is the "Show Desktop BOTH.reg" Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\!Show Desktop] @="!Show Desktop" [HKEY_CLASSES_ROOT\Folder\shell\!Show Desktop\Command] @="\"C:\\Program Files\\Show Desktop\\Show Desktop.BAT\"" [HKEY_CLASSES_ROOT\*\shell\Show Desktop] @="Show Desktop" [HKEY_CLASSES_ROOT\*\shell\Show Desktop\Command] @="\"C:\\Program Files\\Show Desktop\\Show Desktop.BAT\"" This is the "Show Desktop.BAT" used for the value for the Command subkey above: start "" "C:\Program Files\Show Desktop\Show Desktop.scf" exit This is the "Show Desktop.scf" in the "Show Desktop.BAT" file above: [Shell] Command=2 IconFile="C:\Program Files\Show Desktop\Show Desktop.ico" [Taskbar] Command=ToggleDesktop I tried adding the subkeys and values below [HKEY_CLASSES_ROOT\Directory\Background\shell] [HKEY_CLASSES_ROOT\Directory\Background\shell\!Show Desktop] @="!Show Desktop" [HKEY_CLASSES_ROOT\Directory\Background\shell\!Show Desktop\Command] @="\"C:\\Program Files\\Show Desktop\\Show Desktop.BAT\"" to the "HKEY_CLASSES_ROOT\Directory\Background" key. But this failed. I am thinking I have to make my own "ContextMenuHandlers" subkey because the subkeys there such as the one below do add items to the Background Context Menu "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New" So maybe someone here could show me how to create a "ContextMenuHandlers" subkey to add "Show Desktop" to the Background Context Menu.. Thank you.
×
×
  • Create New...