Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Files with absolute paths links - How to move them?

20 Jun 2015   #11
GokAy

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
.
21 Jun 2015   #12
videoclocknet

Windows 7 32 bits
 
 

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 System SpecsSystem Spec
21 Jun 2015   #13
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

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 System SpecsSystem Spec
.

21 Jun 2015   #14
GokAy

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
21 Jun 2015   #15
videoclocknet

Windows 7 32 bits
 
 

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 System SpecsSystem Spec
21 Jun 2015   #16
videoclocknet

Windows 7 32 bits
 
 

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 System SpecsSystem Spec
21 Jun 2015   #17
videoclocknet

Windows 7 32 bits
 
 

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 System SpecsSystem Spec
21 Jun 2015   #18
GokAy

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
21 Jun 2015   #19
videoclocknet

Windows 7 32 bits
 
 

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


Quote   Quote: Originally Posted by GokAy View Post
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 System SpecsSystem Spec
21 Jun 2015   #20
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by GokAy View Post
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.

Quote   Quote: Originally Posted by GokAy View Post
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.


Quote   Quote: Originally Posted by videoclocknet View Post
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 System SpecsSystem Spec
Reply

 Files with absolute paths links - How to move them?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Odd Files Left Over After SP1 - Can't Delete (Long Paths)
Hi, After installing installing SP1, a folder on my C drive is left over. I am unable to delete it since the path is too long, see attachment. Also, see attached txt file for directory and file info. I can't rename the files either, rename does not even show up on context menu and F2...
Installation & Setup
Dos paths and unix paths conversion
I guess this may be a tiny bit off the subject here, but I am attempting this in windows 7. I have a program file manager tool called 'Directory Opus' that is capable of calling windows external programs and passing them the current directory the file manager is sitting on. So far so good. ...
General Discussion
EasyBCD: How to create absolute paths
Hi, My bootable NTFS Test Volume contains just the bootmgr.exe and the G:\boot\BCD file. In the BCD I got something like this: device: ramdisk=\sources\BOOT.WIM,{99051b9e-c748-11e1-b1c7-14dae9e74180} which is a Relative path with its root in G:\ However, this path is wrong as...
Installation & Setup
Can't move folders with files, but can move files
I am attempting to move folders and files around, doing a little organization on my HDD. However if I attempt to move the loaded folder I get the error message " The action can't be completed because the folder or a file in it is open in another program." However I have no other programs open,...
General Discussion
Move Program FIles to SSD - Leave Users files Behind
Greetings Again, My file and storage system is set up like this: C:\ Drive - 120 GB SSD This is my Win 7 64-Bit Ultimate Boot drive. It has my most important Microsoft programs on it. Out of the 111GB available, I've used 42GB, leaving me 69GB free space. I want to keep this area open. ...
General Discussion


Our Sites

Site Links

About Us

Find 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 23:06.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App