drive letter assignement on an external disk used with Ant

If you need help on how to use the program
Post Reply
manarue
Posts: 2
Joined: 2012-05-22 18:26:34

drive letter assignement on an external disk used with Ant

Post by manarue »

Hello,

I've made a copy of my movies on an external drive for friends. I've create the extact same folders structure and names on the external drive. Ant is also on this external drive with a copy of my catalog. But this drive will change of attached computer often. So it will change of drive letter.

In my amc catalog i use the "web adress" to play the movie

by exemple on my computer:

Code: Select all

F:\KINO\FILMS\VF\A Pied, A Cheval & En Voiture 1957\A Pied, A Cheval & 
En Voiture 1957.avi

but on another computer it may be

Code: Select all

G:\KINO\FILMS\VF\A Pied, A Cheval & En Voiture 1957\A Pied, A Cheval & En Voiture 1957.avi
or

Code: Select all

E:\KINO\FILMS\VF\A Pied, A Cheval & En Voiture 1957\A Pied, A Cheval & En Voiture 1957.avi
Is-it possible to, somehow, put a variable (current %drive% ?) in the web adress to change the drive letter to match the external drive one where the amc catalog and the movies are?

I don't know how to do. I've found the following software but it must be installed on the computer:

USB Drive Letter Manager for Windows
http://www.uwe-sieber.de/usbdlm_e.html


I would like to stay in a complety (trans)portable environnement so all of my friends can use this usb drive to lanch directly the movie from amc or ant viewer.



I didn't found the answer in your forum.

Thank's for any advice :wink: .

Manarue
soulsnake
Posts: 756
Joined: 2011-03-14 15:42:20
Location: France

Post by soulsnake »

Hi,

I made a little script for you and others who need it ;).
You can download it here: http://mickaelvanneufville.online.fr/AMCU/scripts/
Copy the files 'ChangeLetterDrive.ifs' and 'SoulSnakeUtils.pas' in scripts folder of AMC.
After that, you just have to run the script on all your movie, select the field where file path is stored (URL for you) and enter the new letter drive ;).

Soulsnake.
manarue
Posts: 2
Joined: 2012-05-22 18:26:34

Post by manarue »

Image

You save my day/evening/night/week Sir :grinking: :grinking:

you're just like lucky luke you're the man who's scripting faster than your shadow :hihi:

Thank you very very much Soulsnake!
Post Reply