mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-07-27 20:37:45 +00:00
14 lines
626 B
Plaintext
14 lines
626 B
Plaintext
|
|
' Lance le dashboard Forex (npm run dev) en arriere-plan, sans fenetre visible.
|
||
|
|
' Copie de ce fichier dans le dossier Demarrage de Windows (shell:startup)
|
||
|
|
' pour un lancement automatique a chaque connexion.
|
||
|
|
projectDir = "C:\Users\capug\Documents\Private\Investissements\Trading\Code\forex-dashboard"
|
||
|
|
logDir = projectDir & "\logs"
|
||
|
|
|
||
|
|
Set fso = CreateObject("Scripting.FileSystemObject")
|
||
|
|
If Not fso.FolderExists(logDir) Then fso.CreateFolder(logDir)
|
||
|
|
|
||
|
|
Set WshShell = CreateObject("WScript.Shell")
|
||
|
|
WshShell.CurrentDirectory = projectDir
|
||
|
|
cmd = "cmd /c npm run dev >> """ & logDir & "\dashboard.log"" 2>&1"
|
||
|
|
WshShell.Run cmd, 0, False
|