Sauvegarde en .bat

t671 Messages postés 1478 Date d'inscription   Statut Membre Dernière intervention   -  
dubcek Messages postés 18627 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,

J'ai un programme en ".bat" qui se trouve sur D/Sauvegarde Outlook, et qui me sauvegarde ma boîte Microsoft Outlook.
echo on
c:
taskkill /f /im outlook.exe '
c:
cd \
cd Users\thierry\AppData\Local\Microsoft\Outlook\Outlook.pst '
u:
cd \
c:
xcopy c:*.* u: /E /Y /C '
c:
"C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE"

La sauvegarde se fait sur le lecteur H/Outlook, mais je voudrais supprimer cette partition et rediriger la sauvegarde sur le lecteur D/Sauvegarde Outlook.

Comment faire ?

1 réponse

  1. dubcek Messages postés 18627 Date d'inscription   Statut Contributeur Dernière intervention   5 659
     
    hello
    est ce que \Users\thierry\AppData\Local\Microsoft\Outlook\Outlook.pst est un fichier ou un répertoire ?
    je ferais comme ça:
    echo on
    taskkill /f /im outlook.exe
    cd /d "C:\Users\thierry\AppData\Local\Microsoft\Outlook\"
    xcopy *.* "D:\Sauvegarde Outlook" /E /Y /C 
    "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE"
    1
    1. traash Messages postés 333 Date d'inscription   Statut Membre Dernière intervention   24
       
      .pst donc un fichier
      0
    2. dubcek Messages postés 18627 Date d'inscription   Statut Contributeur Dernière intervention   5 659
       
      donc il faut bien faire
      cd /d "C:\Users\thierry\AppData\Local\Microsoft\Outlook\"
      et non pas
      cd Users\thierry\AppData\Local\Microsoft\Outlook\Outlook.pst '
      0