Files with absolute paths links - How to move them?

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #11

    Try run this in the main itf folder. Shift+right click empty space in explorer in itf folder and select "Open command window here".
    Code:
    dir /s/b *.itb >listitb.txt
    Then open it and copy a few lines here and see how it is.
      My Computer


  2. Posts : 14
    Windows 7 32 bits
    Thread Starter
       #12

    Hi gokay,

    I've opened cmd.exe, moved to the parent folder of the itf files of the pendrive. Then I've executed the following command
    Code:
    dir /s/b *.itf >listitf.txt
    And I've attached the listitf.txt, so you can have an idea. Just to say I've read listitf.txt and it includes all the file names

    listitf.txt

    Regards
      My Computer


  3. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #13

    Hi Videoclocknet,

    Your post #10 is beautifully explained. I wish every member posting here in need of a script would explain their requirement with that much relevant detail: the steps you’d take, arguments the solution script should expect, and a short description explaining the desired algorithm. Well done.

    On the Desperateness Scale of 1 to desperate, how quickly would you like to recieve your solution, Vid'? So I’d be able to give a hand in creating that script for you in no time... however I’m actually kind of Windows-less at the moment :), so do expect some delay (probably just a day or two)… Apologies about that.

    One important question, Vid’, are you able to run PowerShell scripts? Parsing an XML document would be a slightly tricky stunt to pull off in Batch.
      My Computer


  4. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #14

    Pyprohly, I don't know about anything about batch files and the sort, just tried to help OP to get the algorithm right. Was it unnecessary? :)

    No idea if this would make a difference, are all jpg files are in one folder or can be in different ones? Do you want them to be in one folder after the move (problem if jpg may have same names) - I hope it is clear.
      My Computer


  5. Posts : 14
    Windows 7 32 bits
    Thread Starter
       #15

    Hi Pyprohly,

    Your support is really appreciated. It's your help, so I'm not going to speak about time limits.

    The laptop has Windows Vista. AFAIK, Powershell is not included in Vista by default. However, Microsoft has created a package for installing the version 1.0: https://support.microsoft.com/en-us/kb/928439

    Also, I suspect the following link is the update to the version 2.0: Download Windows PowerShell 2.0 and WinRM 2.0 for Windows Vista (KB968930) from Official Microsoft Download Center

    I can install those packages if you need.

    Regards
      My Computer


  6. Posts : 14
    Windows 7 32 bits
    Thread Starter
       #16

    Hi Gokay,

    The original location of the jpg files are different between files. However, once those jpg files are copied after running the script, the copied jpg files can be in the same folder (the output folder). In fact, I prefer them to be in the same folder -it's easier to find them.

    I forgot to say that they can be jpg files, png files or whatever file type
      My Computer


  7. Posts : 14
    Windows 7 32 bits
    Thread Starter
       #17

    In case the algorithm finds more than one image file with the same name, for example logo.jpg, the algorithm can rename the copied jpg file to another name. No problem with that.

    For instance, logo.jpg, logo(1).jpg, logo(2).jpg ...

    In that case, the algorithm has to change the <FileName> tag of the copied itf file to point to the new name of the image file. For instance:
    Code:
    <FileName>W:\logo(2).jpg<FileName>
    One itf file can contain more than one <FileName> tag -for instance, if the label has several images.
      My Computer


  8. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #18

    Wouldn't it be better and more organized if you have, say,

    W:\Images\<itf_filename1>\logo.jpg (or other extensions).
    W:\Images\<itf_filename1>\logo2.png

    W:\Images\<itf_filename2>\logo.jpg
    etc.

    itf_filename can be read automatically anyway

    This way all image files will be in same parent folder but in their own respective sub-folder. Hope this makes sense. :)
      My Computer


  9. Posts : 14
    Windows 7 32 bits
    Thread Starter
       #19

    Nice appreciation. It would be beautiful. And definitely more organized


    GokAy said:
    Wouldn't it be better and more organized if you have, say,

    W:\Images\<itf_filename1>\logo.jpg (or other extensions).
    W:\Images\<itf_filename1>\logo2.png

    W:\Images\<itf_filename2>\logo.jpg
    etc.

    itf_filename can be read automatically anyway

    This way all image files will be in same parent folder but in their own respective sub-folder. Hope this makes sense. :)
      My Computer


  10. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #20

    GokAy said:
    Pyprohly, I don't know about anything about batch files and the sort, just tried to help OP to get the algorithm right. Was it unnecessary? :)
    Words can't explain how un-unnecessary your assistance was, GokAy. After all, reading the OP by itself, it isn't apparent that the problem involves a certain help, which I can provide. Would have ignored this thread without your reply and your continued influence to the flow of this discussion:

    I was equally as confused as you were at post #5, GokAy, some clarification and more details on Videoclocknet’s part was needed then.

    Further more, your post #8, GokAy, I would have instructed exactly the same: “how would you do it manually?”

    Everything you did was necessary. You’re doing good great exceptional fantastic magnificent, believe me.

    GokAy said:
    No idea if this would make a difference, are all jpg files are in one folder or can be in different ones? Do you want them to be in one folder after the move (problem if jpg may have same names) - I hope it is clear.
    Scattered or all in one place--makes zero difference either way.


    videoclocknet said:
    The laptop has Windows Vista. AFAIK, Powershell is not included in Vista by default. However, Microsoft has created a package for installing the version 1.0 [...] I can install those packages if you need.
    No, no. Thats fine. Batch it is.
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:06.
Find Us