Loading ...
Sorry, an error occurred while loading the content.

23272RE: [Clip] Renaming files with new wildcard functionality

Expand Messages
  • Pete Turner
    Sep 18, 2012
    • 0 Attachment
      G'day John,

      > ^$GetDosOutput(rename "^%EbookPath%*.jpeg" "*.jpg)$

      A couple of things:

      Is the missing closing double quote after "*.jpg missing in your actual code, or just in the post?

      Also, have you tried enclosing the entire command in double quotes, e.g.

      ^$GetDosOutput("rename "^%EbookPath%*.jpeg" "*.jpg"")$


      -----Original Message-----
      From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of John Shotsky
      Sent: Tuesday, 18 September 2012 12:56
      To: ntb-clips@yahoogroups.com
      Subject: RE: [Clip] Renaming files with new wildcard functionality

      As an update to this question, I attempted to use the dos function to do my bidding. It does rename the files, but it
      gives an error message that 'no output' was created. That is, it did the right thing, but said it didn't. The user must
      dismiss the error message. Not acceptable.
      The command I use is:
      ^$GetDosOutput(rename "^%EbookPath%*.jpeg" "*.jpg)$
      But with debug on, I see a /c after the rename command, which is an invalid switch for the rename command. I don't know
      how it gets there, it's not part of my variable name, which is a standard D:\Folder\ format. So, it appears that NoteTab
      is throwing in a switch that is causing an error window to appear, even though it is executing what I want. Any ideas?

      Sometimes, it seems that nothing is easy. The simplest things can drive you nuts. I tried using a DOS CMD command, but
      that didn't work at all. I have to wonder why. C'mon, this is simple file renaming stuff, and it's so hard to do that a
      25 year computer administrator can't figure it out.(Although it is EASY if I do it manually from the command line.) I do
      NOT want to install yet another foreign application simply to rename a few files occasionally. If I sound frustrated,
      it's because I AM. A little assistance in the help system might make it more clear. All it says is that wild cards are
      not supported, but it's not clear whether that is old terminology since the 'new' wildcard functions were added. Hours
      wasted. Not happy. Fortunately, I have a good supply of wine, and a decent football game to watch while I observe the
      unusable results of my fumbling around.

      RecipeTools Web Site: <http://recipetools.gotdns.com/> http://recipetools.gotdns.com/

      From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of John Shotsky
      Sent: Monday, September 17, 2012 19:14
      To: ntb-clips@yahoogroups.com
      Subject: [Clip] Renaming files with new wildcard functionality

      I'd like to use the new wildcard functionality to rename photo files from jpeg to jpg. I have a defined working folder,
      and all images are in that folder. What would be the command to rename *..jpeg to *.jpg? I don't know the individual
      file names, but I guess we could create an array if necessary and loop through it. Just not clear if this can be done
      via wildcard. If it can't be done via normal means, I will write a dos rename command to execute the requirement.

      [Non-text portions of this message have been removed]

      [Non-text portions of this message have been removed]


      Fookes Software: http://www.fookes.com/
      NoteTab website: http://www.notetab.com/
      NoteTab Discussion Lists: http://www.notetab.com/groups.php

      Yahoo! Groups Links
    • Show all 7 messages in this topic