topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday April 24, 2024, 10:17 am
  • 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Coldiffusion [ switch to compact view ]

Pages: [1]
1
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
  }
}

2
Fastest code in the west
Developer


I confirm  :-*

Thanks you !

3
Thanks for quick answer !

Just tested your script skrommel, working nice without any problems.

There are just 2 things I would like to see changed (if it's possible)



The text in red, being able to change it (with a ini file ?)
Remove the blue option (in english : "create new folder")


4
I took a brief look at total commander, it seems like a very powerful tool, 

the problem is I intend to distribute the soft/script to many users (dozens, hundred dont know yet) and I try to keep it simple for them, click here, click here, click here and voila

Anyway if you decide to take some time to write a standalone tool for me, you will be rewarded for your work.

5
I will try to explain my needs simply.

I'm looking for a script/soft which search in a specific folder (and all subfolders) for this :

examplefile1.msf (file with .msf extension)
examplefile1 (file with no extension)
examplefile1.sbd (simple folder)

In this situation the script would be able to detect there is a folder which have the same of a file. (like in the example up there)
and the script would rename the "file1.msf" to "file1.msf.old"

Basicaly it would to that :

-> you launch the soft/script
-> it ask for a folder's path
-> the script check for the similarity I explained up there

if

-> there is a file (.msf) who have the same name than a folder (finishing with .sbd) : it add .old to the extension (example = file.msf.old) or rename (if it's easier) the file from .msf to .old (example = file.old)

-> there is no folders which have the same name : nothing happens


Thanks !
 

6
You even corrected the little bug with "Foood_Bulb.ico" ^^

that's just perfect, exactly what I was looking for.

thanks you  :-*

7
almost almost perfect !  :tellme:

after choosing the folder, a dialog popup with the shortcut name



A way to avoid that ?

8
2 last things and it will be perfect !

Add a line in the ini to choose the name of generated shortcut (this "Process '%getNameNoExt%' Folder.lnk"
Remove (or hide ?) the choose_n_create icon tray (if it's possible)


Btw thanks again for your fabulous quick job !

when my friend talk me about donationcoder, I couldn't imagine this community was this fast answering problems that would took me days or weeks  :P

Merci !  :-*



9
ok, it's working great !

however 2 things I would like to change :

First the text in the browse dialog : "select a folder that is to be processed. Note: A shortcut will be created on the Desktop"


(yes I'm french ;D)

I tried to change it in the ahk but with no success, I think I have to edit "choose_n_create.exe"


Second thing, the icon of the shortcut :

As I dont want the user to be asked to choose the icon of the created shortcut, I'm trying to change the icon of the console exe of Aid4Mail, "a4m.exe" (which dont have any icon) so the shortcut will have the icon I choosed for a4m.exe

The problem is that I couln't be able to change a4m.exe's icon with "Exe Icon Changer" (a soft that seems to be the solution), but I'm almost sure there are plenty other softs which would be able to do it

Of course the best would be to tell choose_n_create to use a specific icon (in the .ini for example) but I don't know if it's possible, you tell me  :P


10
first, thanks for the fast reply !

I intend to use the shortcut to execute Aid4mail (software used to convert mails) on multiples computers.

so a shortcut could look like this :

c:\aid4mail\a4m.exe c:\archive\*.msf c:\archive /pst /s

(in this example the user used the browse dialog and selected c:\archive)





11
What I'm looking is pretty simple (I think)

A vbs (propably) which pop up the user a browse dialog like this


the user choose a folder, and it generate a shortcut (on his desktop) and add the choosen folder's path to the shortcut

Example :

c:\app\app.exe path of the folder*.jpg path of the folder /someparameter /someparameter

Parameters in blue never change, they are the same for all shortcut created, only the red change

(I would also like to be able to specify an icon for the generated shortcut, but it's absolutely not a priority ^^)





Thanks !

Pages: [1]