Thanks for the new batch John, it could be nicer than the one I have since it doesn't use temporary files.
In fact, I didn't used the code as it is, I changed some little things to be more the way I need it, but this doesn't really matters.
Also, I didn't used this code directly into a button, but as a user command, so I can call the script in any button I want without pasting all the code.
In fact, I don't have any problem with the script itself, as it works both as a batch or directly into DOpus, but to let you know what the purpose is, I can't afford to run this batch as a separate file because it would defeat the whole purpose of it. To explain some more, I would like to be able to have these toolbar buttons working both for my DOpus install on USB key, but also working on my home computer with the normal DOpus install when the USB key is inserted; that's also why I can't use the /home alias for that as it wouldn't work to find the path of the usb key when running from my home computer DOpus.
Alright, so leo, you guessed right!
The problem I have is that when trying to launch the command, the var is written this way: %%FLASHDRIVE%%.
I tried to escape the % chars with , but it still doesn't work.
I thought it was because I did that in a path, so I tried to use a @set command to define the volume name and escape the characters there, but nothing changes.
I may be a burden on that one, but I really don't see what to do to remove those double %....
PS: a little question on the @nofilenamequoting.... part of the problem was also that DOpus inserted quotes for the command launch, but the ending quote was not at the right place (I used a dlgchoose to be able to put various options), and the ending quote is put at the end of the options. I resolved this problem by putting the quotes myself on the command, but i also tried to use that @nofilenamequoting modifier, but it didn't changed anything. Is that the modifier only works for arguments and not the command itself?