-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmvc.bat
107 lines (60 loc) · 1.45 KB
/
mvc.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
::tiba batch
:: tiba batch
::@echo off
title TIBA BATCH
mode con cols=80 lines=10
color 1F
::Cette ligne permet de cacher toutes les lignes de commande qui sont effectuées lors de l'exécution du programme, ainsi que cette même ligne
::echo Bonjour Monde, ceci est mon premier programme en Batch :)
::1 les variables du script
:: a prend pour valeur PifyZ
::set a=PifyZ
:: b prend pour valeur 2+5, soit 7
::set /a b=2+5
:: c prend pour valeur un nombre aléatoire
::set /a c=%RANDOM%
:: d prend pour valeur 10
::set /a d=%b%+3
:: e prend pour valeur la saisie de l'utilisateur
::set /p e=Quel est votre pseudo ?
:: Affiche le contenu de la variable d (ici elle vaut 10)
::echo %d%
:: Affiche le "f" contenu dans la variable a
::echo %a:~2,1%
:: Affiche l'heure de l'ordinateur
::echo %TIME%
::echo %c%
::2 les variables d'environnement
::rmdir hello_les_zeros
::mkdir hello_les_zeros
::cd hello_les_zeros
::echo tibaredha > tiba.txt
::echo amranemimi >> tiba.txt
::ren tiba.txt amrane.txt
::cd ..
::cd hello_les_zeros
::type amrane.txt
::cd ..
::cd hello_les_zeros
::start hello_les_zeros
::start amrane.txt
::start http://localhost/framework/
::del D/framework/libs/sessions/*.*
D:
cd /wamp/www/mvc/
::del *.* /q
::cd ..
::cd ..
git status
git add .
git commit -a -m "maj"
git push
D:
cd /wamp/bin/mysql/mysql5.1.36/data/
git status
git add .
git commit -a -m "maj"
git push
start http://localhost/mvc/
::pause > nul
exit