Hi all, and sorry if that post is allready solved, but i tried to find the answer by myself, and it seems that I totally failed... :s
My question is pretty simple :
I'm trying to make a batch files, which create 5 virtual drives, then mount 5 .iso, let the user do what he have to, then unmount and remove virtual drives.
Here is my code :
@echo off
:Pointage vers Daemon Tools
cd "c:\Program Files (x86)\DAEMON Tools Lite\"
:Ajout des lecteurs virtuels
echo "Création des lecteurs virtuels, veuillez patienter..."
DTLite.exe -add dt
DTLite.exe -add dt
DTLite.exe -add dt
DTLite.exe -add dt
DTLite.exe -add dt
pause
:Montage des images
echo "Montage des images disques..."
DTLite.exe -mount dt, 0, "c:\Users\admin\Desktop\DvDs\Messages_et_Tutoriels .iso"
DTLite.exe -mount dt, 1, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_1de4.is o"
DTLite.exe -mount dt, 2, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_2de4.is o"
DTLite.exe -mount dt, 3, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_3de4.is o"
DTLite.exe -mount dt, 4, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_4de4.is o"
pause
echo "Les disques sont maintenant disponible dans <<Poste de travail>>."
echo "Ne fermez pas ce script."
echo "Une fois l'utilisation terminée, revenez simplement sur l'invite de commande et appuyez <<Enter>>."
pause
emontage des images
echo "Les images disques et les lecteurs vont être retirés..."
echo "ATTENTION : Les images ne doivent plus être en cours d'utilisation :"
echo "Si il reste des fenêtres ouvertes vers les DvDs, fermez-les, puis revenez à ce script et appuyez <<Enter>>."
Pause
DTLite.exe -unmount_all
DTLite.exe -remove dt, 0
DTLite.exe -remove dt, 1
DTLite.exe -remove dt, 2
DTLite.exe -remove dt, 3
DTLite.exe -remove dt, 4
echo "Les lecteurs ont bien été retirés..."
echo "Appuyez sur <<Entrée>> pour terminer le script."
Pause
exit
I'm doing it for another person of my company, who doesn't like computing and all that sort of things....
He's completely unskilled with Daemon tools, so I expected that a batch script whould have resolve his problem, by doing all the mount/unmount stuff for him.
Unfortunately, I obtain "syntax error" with all commands parameters.... :s
My operating system : Win 7 pro 64 bits
His operating system : Win XP pro sp2 (i know i've some line to change for the script to work on a 32 bits OS, but I think the problem doesn't come from this....)
My version of DTLite is the same than him, and the latest distributed nowadays (4.40.2.0131)
Thank you in advance, sorry for this long topic.
My question is pretty simple :
I'm trying to make a batch files, which create 5 virtual drives, then mount 5 .iso, let the user do what he have to, then unmount and remove virtual drives.
Here is my code :
@echo off
:Pointage vers Daemon Tools
cd "c:\Program Files (x86)\DAEMON Tools Lite\"
:Ajout des lecteurs virtuels
echo "Création des lecteurs virtuels, veuillez patienter..."
DTLite.exe -add dt
DTLite.exe -add dt
DTLite.exe -add dt
DTLite.exe -add dt
DTLite.exe -add dt
pause
:Montage des images
echo "Montage des images disques..."
DTLite.exe -mount dt, 0, "c:\Users\admin\Desktop\DvDs\Messages_et_Tutoriels .iso"
DTLite.exe -mount dt, 1, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_1de4.is o"
DTLite.exe -mount dt, 2, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_2de4.is o"
DTLite.exe -mount dt, 3, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_3de4.is o"
DTLite.exe -mount dt, 4, "c:\Users\admin\Desktop\DvDs\Phase_Travaux_4de4.is o"
pause
echo "Les disques sont maintenant disponible dans <<Poste de travail>>."
echo "Ne fermez pas ce script."
echo "Une fois l'utilisation terminée, revenez simplement sur l'invite de commande et appuyez <<Enter>>."
pause
emontage des images
echo "Les images disques et les lecteurs vont être retirés..."
echo "ATTENTION : Les images ne doivent plus être en cours d'utilisation :"
echo "Si il reste des fenêtres ouvertes vers les DvDs, fermez-les, puis revenez à ce script et appuyez <<Enter>>."
Pause
DTLite.exe -unmount_all
DTLite.exe -remove dt, 0
DTLite.exe -remove dt, 1
DTLite.exe -remove dt, 2
DTLite.exe -remove dt, 3
DTLite.exe -remove dt, 4
echo "Les lecteurs ont bien été retirés..."
echo "Appuyez sur <<Entrée>> pour terminer le script."
Pause
exit
I'm doing it for another person of my company, who doesn't like computing and all that sort of things....
He's completely unskilled with Daemon tools, so I expected that a batch script whould have resolve his problem, by doing all the mount/unmount stuff for him.
Unfortunately, I obtain "syntax error" with all commands parameters.... :s
My operating system : Win 7 pro 64 bits
His operating system : Win XP pro sp2 (i know i've some line to change for the script to work on a 32 bits OS, but I think the problem doesn't come from this....)
My version of DTLite is the same than him, and the latest distributed nowadays (4.40.2.0131)
Thank you in advance, sorry for this long topic.
Comment