script shell pour lancement easy-php

M

Mathieu

Salut à tous,

alors voilà, j'ai un site hébergé en local sur le pc (qui utilise php)
et je voudrais pouvoir lancer avec un seul raccourci: easyphp, et ensuite le
site en local,

Visiblement il faut créer un fichier cmd ou bat, et mettre dedans un code
qui ressemble à

start /"F:\Program Files\EasyPHP1-8\EasyPHP.exe"
@start http://localhost/compta/accueil.php

tel quel ça ne fonctionne pas... comment faire?

Cordialement
Mathieu
 
S

smlunatick

Salut à tous,

alors voilà, j'ai un site hébergé en local sur le pc (qui utilise php)
et je voudrais pouvoir lancer avec un seul raccourci: easyphp, et ensuitele
site en local,

Visiblement il faut créer un fichier cmd ou bat, et mettre dedans un code
qui ressemble à

start /"F:\Program Files\EasyPHP1-8\EasyPHP.exe"
@starthttp://localhost/compta/accueil.php

tel quel ça ne fonctionne pas... comment faire?

Cordialement
Mathieu

SVP. en anglais!!!!! This is an English newsgroup.
 
P

Pegasus \(MVP\)

Mathieu said:
Salut à tous,

alors voilà, j'ai un site hébergé en local sur le pc (qui utilise php)
et je voudrais pouvoir lancer avec un seul raccourci: easyphp, et ensuite le
site en local,

Visiblement il faut créer un fichier cmd ou bat, et mettre dedans un code
qui ressemble à

start /"F:\Program Files\EasyPHP1-8\EasyPHP.exe"
@start http://localhost/compta/accueil.php

tel quel ça ne fonctionne pas... comment faire?

Cordialement
Mathieu

There are a few problems in your batch file. It should probably
look like this:
Line1 @echo off
Line2 start /b "" "F:\Program Files\EasyPHP1-8\EasyPHP.exe"
Line3 "c:\program files\Internet Explorer\iexplore.exe"
http://localhost/compta/accueil.php
 
P

Pegasus \(MVP\)

Mathieu said:
What is the use of start/b ""???
A quoi ça sert???


Cordialy
Mathieu

I'm surprised you ask - you used the Start command yourself!
Launch a Command Prompt, then type start /? to see an
explanation of the Start command and its various switches.

If EasyPHP.exe immediately returns control to your batch
file then you can code it like so:

Line1 @echo off
Line2 "F:\Program Files\EasyPHP1-8\EasyPHP.exe"
Line3 "c:\program files\Internet Explorer\iexplore.exe"
http://localhost/compta/accueil.php
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top