{"id":37,"date":"2009-03-02T17:58:21","date_gmt":"2009-03-02T16:58:21","guid":{"rendered":"http:\/\/flaven.fr\/?p=37"},"modified":"2026-09-16T10:07:09","modified_gmt":"2026-09-16T08:07:09","slug":"modifier-la-variable-path-sous-windows-afin-dexecuter-des-commandes-en-ms-dos","status":"publish","type":"post","link":"https:\/\/flaven.fr\/2009\/03\/modifier-la-variable-path-sous-windows-afin-dexecuter-des-commandes-en-ms-dos\/","title":{"rendered":"Modifier la variable Path sous windows afin d&#8217;executer des commandes en MS-DOS"},"content":{"rendered":"<p>Tout le monde peut avoir entendu parler du MS-DOS une fois dans sa vie. Rachet\u00e9 \u00e0 vil prix par Bill Gates, il est le socle de programmation des distributions Windows. Loin de moi l&#8217;id\u00e9e de donner un cours de DOS, cet article ne s\u2019y int\u00e9resse que pour une unique (et bonne !) raison qui tient dans la question suivante : Comment modifier la variable d\u2019environnement PATH afin de pouvoir lancer des commandes directement depuis la console pour des applications du type de FFMPEG, Imagemagick&#8230;etc.<!--more--><\/p>\n<p><strong>NOTE : Les op\u00e9rations d\u00e9crites ci-dessous qui consistent \u00e0 manipuler la variable path de votre environnement Windows peuvent endommager votre syst\u00e8me. Agissez donc avec la plus grande prudence.<\/strong><\/p>\n\t\t\t\t\t<div class=\"textwidget-unique text\">\n\n\t\t\t\t\t        <div class=\"textwidget-photo\">\n\t\t\t\t\t                <a href=\"https:\/\/flaven.fr\/books\/windows-azure-platform-developpez-deployez-et-administrez-pour-le-cloud-microsoft\/\" class=\"photo\" title=\"Windows Azure Platform - D\u00e9veloppez, d\u00e9ployez et administrez pour le Cloud Microsoft\"><img loading=\"lazy\" decoding=\"async\" alt=\"Windows Azure Platform - D\u00e9veloppez, d\u00e9ployez et administrez pour le Cloud Microsoft\" src=\"http:\/\/ecx.images-amazon.com\/images\/I\/51qtzbkFnjL._SL160_.jpg\" width=\"133\" height=\"160\"><\/a>\n\t\t\t\t\t            <\/div>\n\t\t\t\t\t\t<div class=\"info half\">\n\t\t\t\t\t\t\t<h2 class=\"product-title\"><a class=\"head\" href=\"https:\/\/flaven.fr\/books\/windows-azure-platform-developpez-deployez-et-administrez-pour-le-cloud-microsoft\/\" title=\"Windows Azure Platform - D\u00e9veloppez, d\u00e9ployez et administrez pour le Cloud Microsoft\">Windows Azure Platform - D\u00e9veloppez, d\u00e9ployez et administrez pour le Cloud Microsoft<\/a><\/h2>\n\t\t\t\t\t\t\t\n\t\t\t\t\t        <p class=\"product-excerpt\"><\/p>\n\t\t\t\t\t\t\t\tGenre(s) : <a href=\"https:\/\/flaven.fr\/book-type\/amazon\/\" rel=\"tag\">Amazon<\/a>, <a href=\"https:\/\/flaven.fr\/book-type\/api\/\" rel=\"tag\">API<\/a>, <a href=\"https:\/\/flaven.fr\/book-type\/apis\/\" rel=\"tag\">APIs<\/a>, <a href=\"https:\/\/flaven.fr\/book-type\/applications\/\" rel=\"tag\">Applications<\/a>, <a href=\"https:\/\/flaven.fr\/book-type\/azure-platform\/\" rel=\"tag\">Azure Platform<\/a>, <a href=\"https:\/\/flaven.fr\/book-type\/cloud\/\" rel=\"tag\">Cloud<\/a>, <a href=\"https:\/\/flaven.fr\/book-type\/windows\/\" rel=\"tag\">Windows<\/a><br>Auteur(s) : <a href=\"https:\/\/flaven.fr\/book-author\/florent-santin\/\" rel=\"tag\">Florent SANTIN<\/a><br>Edition(s) : <a href=\"https:\/\/flaven.fr\/book-description\/editions-eni\/\" rel=\"tag\">Editions ENI<\/a><br>\n\t\t\t\t\t<div class=\"but-wrap\"><a href=\"http:\/\/www.amazon.fr\/Windows-Azure-Platform-D%C3%A9veloppez-administrez\/dp\/2746071681%3FSubscriptionId%3DAKIAJYB2QGGQOTHQLRPA%26tag%3Dhecubenet-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D2746071681\" class=\"button\"><span><i class=\"more\"><\/i>+ d'infos<\/span><\/a><\/div>\n\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\n<h2>1 &#8211; Acc\u00e9der et afficher la variable path via la console MS-DOS sous Windows<\/h2>\n<p>La premi\u00e8re question est de savoir comment acc\u00e9der \u00e0 sa console MS-DOS. Via le menu \u00ab D\u00e9marrer \u00bb sous Windows, vous avez acc\u00e8s \u00e0 la mention \u00ab Ex\u00e9cuter \u00bb qui lancera une boite de saisie dans laquelle vous devrez en toute lettres \u00ab cmd \u00bb ou \u00ab command \u00bb.<br \/>\nLa cons\u00e9quence sera alors l\u2019apparition de la console MS-DOS de Windows.<\/p>\n<h4>Acc\u00e9der \u00e0 la console MS-DOS<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0000.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0001.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<h4>Editer la variable path sous MS-DOS<\/h4>\n<p>Il vous suffit de taper le mot \u00ab path \u00bb. Vous verrez \talors appara\u00eetre le d\u00e9tail de la variable d\u2019environnement path.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0002.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<p>Dans notre exemple, vous voyez notamment le chemin vers l\u2019application ffmpeg.<br \/>\nCette valeur correspond bien \u00e0 ce que vous pouvez voir via l\u2019explorateur Windows.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0003.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0004.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<h2>2 \u2013 Modifier la variable \u00ab path \u00bb de windows<\/h2>\n<p>Faites un clic droit sur l\u2019ic\u00f4ne de votre poste de travail afin d\u2019acc\u00e9der aux \u00ab propri\u00e9t\u00e9s \u00bb<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0005.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<p>Dans l\u2019onglet avanc\u00e9, vous acc\u00e9dez au bouton \u00ab variables d\u2019environnement \u00bb<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0006.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<p>Dans le tableau des variables syst\u00e8me vous s\u00e9lectionner la ligne \u00ab Path \u00bb puis cliquer sur le bouton \u00ab Modifier \u00bb.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/pic__0007.jpg\" width=\"400\" height=\"250\" class=\"size-full wp-image-47 aligncenter\" \/><\/p>\n<p>Rajouter \u00e0 la fin de la ligne compl\u00e8te l\u2019\u00e9l\u00e9ment suivant \u00ab ;C:FFMPEG \u00bb puis cliquer sur OK.<\/p>\n<pre lang=\"txt\">\r\n# %systemroot%system32;%systemroot%;%systemroot%system32wbem;c:imagemagick-6.4.3-q16;C:FFMPEG\r\n<\/pre>\n<p><strong>Attention :<\/strong> Si vous s\u00e9lectionnez la ligne compl\u00e8te en fonction de votre configuration, vous devriez avoir une ligne de ce type par exemple. La variable qui se situe \u00e0 la fin n\u2019est pas termin\u00e9 par un point virgule \u00ab ; \u00bb<\/p>\n<p><strong>D\u00e9sormais vous allez pouvoir lancer des commandes directement dans votre console MS-DOS pour manipuler des vid\u00e9os avec ffmpeg ou manipuler des fichiers photos via imagemagick.<\/strong><\/p>\n<p><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/fpdownload.macromedia.com\/get\/flashplayer\/current\/swflash.cab\" id=\"Player_9aa51bd8-d832-4d4f-8a7b-1899b5cab3c8\"  WIDTH=\"300px\" HEIGHT=\"250px\"> <PARAM NAME=\"movie\" VALUE=\"http:\/\/ws.amazon.fr\/widgets\/q?rt=ss_ssw&#038;ServiceVersion=20070822&#038;MarketPlace=FR&#038;ID=V20070822%2FFR%2Fhecubenet-21%2F8003%2F9aa51bd8-d832-4d4f-8a7b-1899b5cab3c8&#038;Operation=GetDisplayTemplate\"><PARAM NAME=\"quality\" VALUE=\"high\"><PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\"><PARAM NAME=\"allowscriptaccess\" VALUE=\"always\"><\/OBJECT> <NOSCRIPT><A HREF=\"http:\/\/ws.amazon.fr\/widgets\/q?rt=ss_ssw&#038;ServiceVersion=20070822&#038;MarketPlace=FR&#038;ID=V20070822%2FFR%2Fhecubenet-21%2F8003%2F9aa51bd8-d832-4d4f-8a7b-1899b5cab3c8&#038;Operation=NoScript\">Widgets Amazon.fr<\/A><\/NOSCRIPT><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tout le monde peut avoir entendu parler du MS-DOS une fois dans sa vie. Rachet\u00e9 \u00e0 vil prix par Bill Gates, il est le socle&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/2009\/03\/modifier-la-variable-path-sous-windows-afin-dexecuter-des-commandes-en-ms-dos\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">Modifier la variable Path sous windows afin d&#8217;executer des commandes en MS-DOS<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":9598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bf_ai_meta_description":"Modifier la variable Path sous Windows permet d'ex\u00e9cuter des commandes MS-DOS pour FFMPEG, Imagemagick. Suivez les \u00e9tapes pour configurer votre environnement.","bf_ai_og_title":"Modifier Path Windows MS-DOS","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3443,3449],"tags":[83,97,3489,98,99],"class_list":["post-37","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-multimedia-video","category-tutorials-how-to","tag-ffmpeg","tag-imagemagick","tag-microsoft-azure","tag-ms-dos","tag-windows"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Vuhl-B","jetpack_featured_media_url":"https:\/\/flaven.fr\/wp-content\/uploads\/2009\/03\/do-you-speak-ms-dos_g_bf.jpg","_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=37"}],"version-history":[{"count":2,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":9601,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/37\/revisions\/9601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/9598"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}