home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.windows.xp      Another Windows XP fan forum      2,222 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,652 of 2,222   
   Alfred Einstein to All   
   Launching script from Win Explorer   
   26 May 08 19:01:06   
   
   XPost: alt.comp.os.windows-xp   
   From: lhorwinkle@humanoid.net   
      
   I have a script called "fixacls" that "fixes" the ACLs on selected files.   
   It's a shell script that runs under the cygwin bash shell.   
      
   I invoke it from Win Explorer from the context menu.  Here are the registry   
   settings:   
      
   [HKEY_CLASSES_ROOT\*\shell\Fix ACLs]   
   @="Fix ACLs"   
      
   [HKEY_CLASSES_ROOT\*\shell\Fix ACLs\command]   
   @="C:\\cygwin\\bin\\bash.exe -l C:\\apps\\sh.cygwin\\fixacls \"%1\""   
      
   If I right-click a file and select "Fix ACLs", the fixacls script runs in a   
   bash window.   
      
   It used to be that if I clicked two (or more) files and selected "Fix ACLs"   
   from the context menu, two (or more) bash windows would open and run the   
   script (once for each selected file).   
      
   Now, suddenly, if I select two or more files, the "Fix ACLs" item does   
   NOTHING. (Selecting one file works ok.)   
      
   QUESTION1:  Why is that? What settings might be kerfuzzled?   
      
   Also, on an entirely different front ...  suppose I select two or more files   
   and then select a context menu item. So ...   
      
   QUESTION 2:  How can I change the behavior to pass ALL of the selected file   
   names to a single instance of the script (or, say, a binary prog) as   
   command-line args?  Is there any way to do that?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca