ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Check file/folder similarity, rename file when similiraty occurs

<< < (2/2)

skrommel:
 :) Done!

Skrommel

Coldiffusion:
Fastest code in the west
Developer

I confirm  :-*

Thanks you !

VideoInPicture:
I see I'm a bit late. I saw this thread a few hours before but was busy coding other stuff.

Here's my solution to the problem:
Check file/folder similarity, rename file when similiraty occurs1

It is written in C# and requires .Net Framework 2.0 which is already on all Vista computers and most XP computers that use Windows Update. Just double-click the MSF_FileRestructurer.exe file and the GUI will pop up.

The code copies the source directory into a new directory and then processes that new directory so there is no chance of something going wrong. It also has some error checking in the code just in case some file is being used or locked by the system so it doesn't crash while it is running. You can also stop the program while it is in the middle of running. There is progress bar that tells you how far along it is and an error message box that tells you any errors that pop up. I have tested the program using a test directory I created that is included in the file.

Source code is included.

Coldiffusion:
Thanks VideoInPicture but skrommel already did a autohotkey which working nice  :-[


--- ---FileSelectFolder,folder,,2,Please select a folder
If folder=
  ExitApp
Loop,%folder%\*.msf,0,1
{
  SplitPath,A_LoopFileLongPath,name,dir,ext,name_no_ext,drive
  IfExist,%dir%\%name_no_ext%.sbd
  {
    FileGetAttrib,attrib,%dir%\%name_no_ext%.sbd
    IfInString,attrib,D
      FileMove,%dir%\%name_no_ext%.msf,%dir%\%name_no_ext%.msf.old
  }
}

mouser:
Nice work both of you!

What kind of crazy place is this where there are not one but 2 solutions posted for a request in 24 hours  :o :o :o

Navigation

[0] Message Index

[*] Previous page

Go to full version