New
#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".
Then open it and copy a few lines here and see how it is.Code:dir /s/b *.itb >listitb.txt
Try run this in the main itf folder. Shift+right click empty space in explorer in itf folder and select "Open command window here".
Then open it and copy a few lines here and see how it is.Code:dir /s/b *.itb >listitb.txt
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
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 namesCode:dir /s/b *.itf >listitf.txt
listitf.txt
Regards
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.
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.
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
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
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:
One itf file can contain more than one <FileName> tag -for instance, if the label has several images.Code:<FileName>W:\logo(2).jpg<FileName>
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. :)
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 doinggoodgreatexceptionalfantasticmagnificent, believe me.
Scattered or all in one place--makes zero difference either way.
No, no. Thats fine. Batch it is.