Programmation, programme ouvre régulièrement
Résolu
guibbor
Messages postés
247
Statut
Membre
-
guibbor Messages postés 247 Statut Membre -
guibbor Messages postés 247 Statut Membre -
Bonjour,
Je cherche a créer un programme sur mon ordinateur qui ouvre automatiquement un dossier, une image, un fichier ou un programme toutes les x secondes, quel langage utiliser svp ? Connaissez vous un bon tuto pour ce langage ? Et si vous avez un script tout fait, je suis preneur !
Merci !
Je cherche a créer un programme sur mon ordinateur qui ouvre automatiquement un dossier, une image, un fichier ou un programme toutes les x secondes, quel langage utiliser svp ? Connaissez vous un bon tuto pour ce langage ? Et si vous avez un script tout fait, je suis preneur !
Merci !
A voir également:
- Programmation, programme ouvre régulièrement
- Programme demarrage windows - Guide
- Application de programmation - Guide
- Mettre en veille un programme - Guide
- Programme word gratuit - Guide
- Message programmé iphone - Guide
3 réponses
Je pense que la plupart des langages doivent pouvoir faire ça.
Exemple en Java :
Exemple en Java :
public class Test
{
public static void main(String[] args) throws Exception
{
// the Desktop instance of the current browser context
java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
// the file to be opened with the associated application
java.io.File file = new java.io.File("C:/");
// the length of time to sleep in milliseconds
long millis = 5000;
while (true)
{
// Launches the associated application to open the file.
// If the specified file is a directory, the file manager of the current platform is launched to open it.
desktop.open(file);
// Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers.
Thread.sleep(millis);
}
}
}