◦ Créer C:\TP\travail et C:\TP\loisir et créer dans ces répertoires une jonction de…
- User
◦ Créer C:\TP\travail et C:\TP\loisir et créer dans ces répertoires une jonction de répertoire vers C:\TP\strip\Data. Vérifier qu’un document créé dans ce répertoire est aussi accessible depuis travail/data et loisir/data ,
- Assistant
Pour créer les répertoires et les jonctions de répertoire, vous pouvez suivre les étapes suivantes dans une invite de commande :
- Ouvrir l'invite de commande : Appuyez sur la touche "Windows + R" pour ouvrir la boîte de dialogue "Exécuter", tapez "cmd" et appuyez sur "Entrée".
- Créer les répertoires : Tapez les commandes suivantes pour créer les répertoires "travail" et "loisir" dans le lecteur C:
bashmkdir C:\TP\travail mkdir C:\TP\loisir- Créer la jonction de répertoire : Tapez la commande suivante pour créer une jonction de répertoire vers C:\TP\strip\Data dans les répertoires "travail" et "loisir":
bashmklink /j C:\TP\travail\data C:\TP\strip\Data mklink /j C:\TP\loisir\data C:\TP\strip\Data - User
after typing mklink /j C:\TP\travail\data C:\TP\strip\Data it says Accés refusé
- Assistant
If you are getting an "Access Denied" error when trying to create a junction using the "mklink" command, it could be because you need administrator privileges to create junctions.
Here's how you can create a junction with administrator privileges:
- Open the Command Prompt as an administrator. To do this, right-click on the Command Prompt icon in the Start menu and select "Run as administrator".
- Type the following command to create the junction:
bashmklink /j C:\TP\travail\data C:\TP\strip\DataReplace "C:\TP\travail\data" and "C:\TP\strip\Data" with the appropriate paths for your system.
This should create the junction without any access denied errors. If you still get an error, it could be because the destination directory (C:\TP\strip\Data) already exists. In that case, you can delete the destination directory and try again.
Keep in mind that creating junctions can be risky, as it can cause problems if not done correctly. Make sure you understand what junctions are and how they work before creating them.