Here is my concern, I made a user command to calculate file checksums with fsum.
I defined this to be able to choose between CRC32 and MD5 checksum type, and select the filetypes I want the cheksum on.... The thing is, if I use CRC32 algorithm, I would like the destination file have the .sfv extension, but in case of MD5 cheksum, the extension should be .md5.
As you can see in the code below, the "format" variable is -js or -jm as it's for command line.
Is it able to alias the format variable? To be able to trigger if the file output is .sfv or .md5?
@set format = {dlgchoose|Choisir l'algorithme:|md5=-js+CRC32=-jm}
{alias|home|\}PortableApps\Outils\fsum.exe {$format} *.{dlgstring|Extension(s)} >Chksum.sfv
Since no one else has chimed in here I'll take a stab at this but I have to admit I have no idea what you're trying to do. However it appears to me you'd like the output file named Chksum have an extension of .sfv for CRC32 processing and .MD5 for MD5 processing. Assuming that's so, would the following work for you?
@set format = {dlgchoose|Choisir l'algorithme:|md5=-js >Chksum.md5+CRC32=-jm >Chksum.sfv}
{alias|home|\}PortableApps\Outils\fsum.exe {$format}
Your command line version of FSum appears to be different to the one I found. Using "my" version, and assuming you have fsum.exe in a structure aliased as Utilities, the following buttons may do what you want..?
(If the other suggestions don't work for you) I'd probably write a bit of VBScript that you pass the filename and an argument indicating the type, and the script then runs fsum with the appropriate arguments for the type.
The way John proposed is working fine. I didn't thought it would because there was file types to specify normally before sending the infos to the file, but it works correctly!
AussiBoykie, I don't have the same application as you mention. The application you use is called FastSum even it's a shorter name for the command. The one I use is from Slavasoft
So in the end, I don't really have to use the @set, so here's what I use:
By the way, I made a mistake in my first post, -js is for CRC32 and -jm is for MD5!
About VBScripts, I didn't used any yet in DOpus, but I'll try to see the examples and make something with it! I know I'll probably need it sooner or later, and I need to be more familiar with it as I made only 2 or 3 scripts using it in the past!