topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 9:54 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Windows Shortcut transformation  (Read 32596 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #25 on: February 23, 2011, 05:14 PM »
Ouwwww. That's not my spirit. I use shortcuts precisely to not duplicate file space. With seven real hard disk in my new pc I am plenty of space. Super plenty of space. I think a hard drive goes better is plenty of space. Today is easy with disks of 2 TB with variable speed.
I have downloaded the soft and try for the future.
 :P

At the present moment I need to export some information and create recopilations of real files under relative hyperlinks under one single folder. Not a dozen folders inside 7 hard disks specialized. That's is mi situation for the rest of my life, but not for the rest of the world I need to communicate.

Sometimes I need duplicate the information in one single folder to share.....

Better to share.

« Last Edit: February 23, 2011, 05:18 PM by Contro »

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #26 on: February 23, 2011, 09:31 PM »
Here's a mostly finished version, there's a couple more things I want to do/cleanup but it seems to work OK - it hasn't formatted my drive so that's a bonus.

2011-02-24_14-15-24.jpg

What's been done:
  • Added: A real GUI
  • Added: Duplicate folder tree option.  It obeys the state of the Recursive copy option, ie. it'll only work on the source directory unless the Recursive option is selected.  Empty folders will be copied if this option is enabled.  It will duplicate the folder tree even if no shortcuts are found.
  • Added: Delete shortcut option.  It will only delete the original shortcut if the copy was successful, (that's the theory anyway), the existing source folder structure will be left intact.
  • Added: About button

Thinking of doing:
  • Adding an option to just duplicate the folder tree.  ie. Not to copy files/folders linked by a shortcut.
  • Adding an option to rewrite the shortcuts to point to the destination copy.
  • Adding a progressbar, (but don't count on it).
  • Winning the lottery.
  • Going on holiday to Tenerife :D

You can refresh the display by using F5 after the copy has finished.

NOTE: This program only acts upon shortcuts, (*.lnk), therefore it won't copy real files and it'll only copy the folder structure if the Duplicate folder tree option is selected.

See here.
« Last Edit: March 30, 2011, 11:11 PM by 4wd »

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #27 on: February 23, 2011, 11:30 PM »
  • Winning the lottery.


Do you need beta testers?

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #28 on: February 23, 2011, 11:47 PM »
  • Winning the lottery.


Do you need beta testers?

If you mean by 'beta testers', someone who'll buy the tickets and then give me all proceeds of winnings, (I'd reimburse you the ticket cost - I'm not that much of a skinflint), then the answer is yes  ;D

OK, on with the perpetually evolving piece of randomly generated code: Short2Real v0.19

2011-02-24_21-18-42.jpg

Since you last possibly downloaded it:
  • Added: Option to just duplicate the folder tree, no copying is done.  Selecting this will disable the Delete and Rewrite options - makes sense once you think about it.
  • Added: Option to rewrite the original shortcuts to point to the new file/folder location.  Only done if the copy was successful because it has to delete the original shortcut first.  The Delete and Rewrite options are mutually exclusive, selecting one disables the other.

The next time you might download it:
  • Progressbar - still a definite maybe.

Feel free to test it out on your most prized files, files where if they disappeared you'd run around the house screaming, "I'll kill him!  Honest to <bleep> I'll kill the <bleeping> <bleep>!!!"

BTW, I have no idea if this will work on a computer using strange foreign characters, (foreign as in non-English).

See here.
« Last Edit: March 30, 2011, 11:10 PM by 4wd »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #29 on: February 24, 2011, 09:47 AM »
 :-*

I'll try and comment the last version. I supposed is not problem with the english version. But I'll try with the ñ , and the tildes o accents.

If you come to Tenerife I want to know you. Tell me the date please.
 :P

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #30 on: February 26, 2011, 03:07 PM »
Short2Real v0.20

2011-02-26_23-17-49.jpg

The most suspected features have been added:
  • Added: Progressbar incremented for every shortcut processed.
  • Added: Log file that can be viewed/saved at the end of shortcut processing.
  • Added: Tooltips for the checkbox options.

2011-02-26_23-16-57.jpg

That's it unless any avatar_430.gif scurry out of the codework...

 ;)
« Last Edit: February 28, 2011, 08:32 PM by 4wd »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #31 on: February 28, 2011, 09:29 AM »
Ohhhh Yessss. I promised test deeply.  :-*
I am beyond many whats and returning. I have to complete the vast information project with your program.

Best Regards
 :P

As you said the program now copy directories, even empty folders. Give information about process copying shortcuts and make copy of the entire original folder any, but give election to copy or not copy the shortcuts, even rewriting. Splendid.

I understand the possibility to rewrite shortcuts not in the original folder, only in the target folder. That's the transformation.
I understand the possibility to delete shortcuts in the original folder, but for me is not interesting this thing. May be only in the case I want to transform the original folder in the target folder in the same position.
Perhaps I am confusing myself.
« Last Edit: February 28, 2011, 09:37 AM by Contro »

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #32 on: February 28, 2011, 08:46 PM »
I understand the possibility to rewrite shortcuts not in the original folder, only in the target folder. That's the transformation.

This was in the case where you wanted to shift all the targets of shortcuts to somewhere else so you could delete the files in their original locations.

I understand the possibility to delete shortcuts in the original folder, but for me is not interesting this thing.

This was so you could use it like a simple backup/organisation kind of thing.  eg. You could collect shortcuts to various files/folders on your drives into one folder, (without having to physically move them), then later, (say once a week/month), just run the program to copy them all to one place without doing it one at a time.  The shortcuts are deleted ready for the next time you want to do it for a different set of files/folders.

I had to add the shortcut deletion anyway for the rewriting section so I made it a separate option.

One thing I forgot to do was check to see if there's enough drive space on the destination, so I think currently if you run out it'll just show up as failed copies in the log.  Calculating total copy size is something I can add but it would probably slow down the operation if there's folders with lots of files.  Something I'll look into.
« Last Edit: February 28, 2011, 08:51 PM by 4wd »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #33 on: April 29, 2011, 11:21 AM »
This is just the time to test deeply. I will comment anything and enjoy everything.

 :-*

Best Regards. I need to execute a lot the program this weekend.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #34 on: April 30, 2011, 08:43 AM »
First Scenario

Expected : don't copy the real files
Unexpected : don't find any shortcut and creates only the folder CRONO empty. This folder contains 18 real folders and six shortcuts to folders. And inside contains more files, folders and shortcuts.

http://img38.imageshack.us/img38/1166/screenshot3004201114380.png
Windows Shortcut transformation

http://img844.imageshack.us/img844/1151/screenshot3004201114373.png
Windows Shortcut transformation



Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #35 on: April 30, 2011, 08:46 AM »
Second Scenery

Do nothing

http://img64.imageshack.us/img64/7074/screenshot3004201114445.png
Windows Shortcut transformation

http://img685.imageshack.us/img685/8214/screenshot3004201114450.png
Windows Shortcut transformation



Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #36 on: April 30, 2011, 08:52 AM »
Really I need the scenery two.

The recursive copy I think is for replicate the folder tree and all the shortcuts to be copied. Don't go well. The shortcuts are not copied.

I think the soft may need to be revised or I am doing something bad.

Best Regards.


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #37 on: April 30, 2011, 08:58 AM »
Scenery Third.

Nothing seems to happen.... !!!!!

http://img34.imageshack.us/img34/6309/screenshot3004201114571.png
Windows Shortcut transformation

http://img98.imageshack.us/img98/1082/screenshot3004201114574.png
Windows Shortcut transformation



Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #38 on: April 30, 2011, 09:02 AM »
Scenery fourth

http://img850.imageshack.us/img850/6132/screenshot3004201115002.png
Windows Shortcut transformation

http://img21.imageshack.us/img21/2779/screenshot3004201115004.png
Windows Shortcut transformation


Do Nothing I can see

Best Regards


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #39 on: May 01, 2011, 07:02 PM »
I have to revise the scenery third and fourth because at the present moment I observ in the

M:\Documents and Settings\JOSE\Escritorio\0486.11.DE.001 folder that I have the crono folder created with the corresponding subfolders. And with the shorcuts converted. Even the folder shortcuts converted.

I suspect that the logs offering the total shortcuts copied is not so fast. The script continues working even in the case of other execution in the scenery fourth where no shorcuts are copied.

I will try again and again over

M:\Documents and Settings\JOSE\Escritorio\0486.11.DE.002



Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #40 on: May 01, 2011, 07:21 PM »
I have to test the program and wait about 30 minutes to see interaction before try another options.
I want to convert the shorcuts in real files and folders.

And according to my interpretation of the program instructions I have to mark nothing. Only select source folder and target folder and execute.
I try after reiniate the system and prepared the new target folder

I received No shortcuts found and nothing is copied to the destination folder.

So I continue thinking the scenerio three Recursive copy is the adequate and I will have to wait to see the results. 30 minutes I suppose, and will comment.


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #41 on: May 01, 2011, 07:29 PM »
I have repeat the scenerio third. Received the message 436 shortcuts copied . I supposed the program is working in the background.
I have save this time the log.
I think I have to wait. I don't see in the opened target folder any change.
I click on the until now empty folder and actulize. The CRONO folder appear.
The script is working in the background.....
 :-*

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #42 on: May 01, 2011, 07:34 PM »
The program don't copy normal files, only shortcuts.
So I have make first a copy or the source folder in the target folder of all the files.
Then see the corresponding files to the shortcuts created by the program and delete them in the target folder after verify that the file they are pointing is copied in the target folder.

I'll try this in
M:\Documents and Settings\JOSE\Escritorio\0486.11.DE.003

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #43 on: May 01, 2011, 07:54 PM »
Done.
Now I will delete by hand the shorcuts in DE.003 (M:\Documents and Settings\JOSE\Escritorio\0486.11.DE.003) testing the corresponding real files.
The source folder contains 1194 files and 20 folders with 114 MB. The destination folder at the present time contains 2957 files and 124 folders with 2.69 GB.

 :P

I take notes of all this to not forget. I will comment everything

Best Regards

I received this time the message total shortcuts found 436, succefully copied 434


4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #44 on: May 04, 2011, 04:01 PM »
I'm currently hiding from the tax people in the UK at the moment, (not too far from a certain DC member in Yorkshire ;) ), but to answer some of the above:

  • It only works on shortcuts.  I could add in copying of actual files/folders but it would be slow compared to some programs out there.  If you want to copy all files/folders excluding shortcuts, try:
    xcopy source destination /E /EXCLUDE:.lnk
    This will duplicate the folder structure, (including empty folders), and copy all files/folders except shortcuts.
  • It doesn't run in the background, the progressbar is updated as each shortcut is processed and the results are displayed when all processing is finished.
  • You can refresh the Short2Real directory display by pressing F5.
  • You'll need to refresh explorers' file view by pressing F5.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #45 on: May 04, 2011, 05:25 PM »
Understood

I'll take good care.

Best Regards

A good program.


kamahl

  • Supporting Member
  • Joined in 2010
  • **
  • default avatar
  • Posts: 48
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #46 on: May 05, 2011, 10:38 PM »
A feature request for you:  Would it be possible to have it convert shortcuts to symlinks?

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #47 on: May 06, 2011, 03:10 AM »
I'm currently hiding from the tax people in the UK at the moment, (not too far from a certain DC member in Yorkshire ;) ), but to answer some of the above:

  • It only works on shortcuts.  I could add in copying of actual files/folders but it would be slow compared to some programs out there.  If you want to copy all files/folders excluding shortcuts, try:
    xcopy source destination /E /EXCLUDE:.lnk
    This will duplicate the folder structure, (including empty folders), and copy all files/folders except shortcuts.
  • It doesn't run in the background, the progressbar is updated as each shortcut is processed and the results are displayed when all processing is finished.
  • You can refresh the Short2Real directory display by pressing F5.
  • You'll need to refresh explorers' file view by pressing F5.

I have been testing the program. Certainly good.

Best Regards.
If I received any error I have your log. Simply perfect.



Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #48 on: May 06, 2011, 03:15 AM »
A feature request for you:  Would it be possible to have it convert shortcuts to symlinks?

I am under windows xp pro. I don't really understand some concepts. symlink feels very similar to shortcut, but I don't know.

Best Regards


4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Re: Windows Shortcut transformation
« Reply #49 on: May 06, 2011, 11:51 AM »
A feature request for you:  Would it be possible to have it convert shortcuts to symlinks?

Should be easy enough, (FLW), as I said above, I'm currently in the UK but I have the source on the netbook so I should be able to mod it.

Just don't expect it to happen in the next few days - I'm technically kind of on holiday :)

Just to clarify, do you want symlinks, hardlinks or both (hardlinks are the easiest to do) ?

Symlinks are restricted to NT6+, (Vista and above).
« Last Edit: May 06, 2011, 12:28 PM by 4wd »