Dos Batch

From Fxp Wiki

Jump to: navigation, search

Contents

Windows create directories
Windows création de dossiers

Useful to create multiple subdirectories by juste clicking one key : For exemple, each time I create a new category of file, I want subdirectories for Links, Pages, Docs.
Utile pour créer en une seule touche, plusieurs sous dossiers: par exemple, à chaque fois que je crée une catégories, je veux aussi créer les sous dossiers: Liens, Pages, Docs.

Addsub.bat

 
e:\windows\command.com /c cd "%1" | md Pages | md Tools | md Docs | md Links
exit
 

Replace "e:\winodws" by the correct path to your "command.com" file.

Application

Dans explorer je vais dans Options de dossiers. Je trouve le type "dossiers", et je vais dans modifier.
Ensuite j'ajoute une ligne que j'appelle addsub par exemple, et je la relie grâce à "parcourir", au fichier addsub.bat.
Je referme en validant tout mes choix (OK), et maintenant, quand je suis dans l'explorateur, un click droit sur un dossier il y a une nouvelle possibilité: addsub, qui ajoutera les sousfichiers au fichier sur lequel je cliquerai
In explorer, I go to files properties. I choose the "file" type, and choose modify.
I add a new command, and give it the name addsub for exemple. I link it to the addsub.bat, with the "browse" button.
I validate all the choices and exit (OK).Now, in explorer, when I right click on a file, I have got a new command named addsub, which will add subdirectories to the file.


Close Apache before windows
Ferme Apache avant Windows

 
e:
cd e:\progra~1\apache~1\apache
apache -k shutdown
echo hello
pause 
RUNDLL32.EXE User,ExitWindows
 

Replace "e:\..." by the correct path to your Apache program.

Dir tries Tentative dir

 
dir *_fichiers. /z/b /o:g /s > tr6.txt
 
Echo < tr.txt
 

Links Liens


  • Link :http://www.ss64.com/links/ntlinks.html
    • Cache :[[c>Batch/ss64%20Links.htm]]
    • Language :en
    • Description :Oriented NT (NT4). Detailed syntaxe for commands. Many links, the newsgroups, forums.







<cib:tip>
<cib:command>
<cib:name>For</cib:name>
<cib:os>win98</cib:os>
<cib:utility>Loop : loops <span class="lgfr" lang="fr" xml:lang="fr">boucle</span>, iterates through variable list (or files in directories) and execute another command</cib:utility><br />
<cib:syntax>For %%v in (*.*) do xxx</cib:syntax><br />
<cib:explanation>Where xxx is another command</cib:explanation><br />
<cib:limitations>"For" cannot do multiple commands: you have to make the command be a "call" to a batch file that will make the multiple commands </cib:limitations>
</cib:command>
</cib:tip>
Views
Personal tools
Menu:
Navigation
Toolbox