OVH Cloud OVH Cloud

Connaitre le repertoire courant

1 réponse
Avatar
Dom
Bonjour,

Comment en WSH puis je connaitre le répertoire courant ?
Merci

Dom

1 réponse

Avatar
Jacques Barathon [MS]
Dom,

Tu peux utiliser la propriété CurrentDirectory de l'objet Shell:

--- couper ici ---
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory
--- couper ici ---

Jacques

"Dom" wrote in message
news:
Bonjour,

Comment en WSH puis je connaitre le répertoire courant ?
Merci

Dom