FileExists renvoie toujours False
Bonjour!
J'ai créé un VBscript qui teste l'existence d'un fichier, mais le test me renvoie tout le temps False.
Voici mon code, où nom est le nom du fichier à ouvrir.
Code:
1 2 3 4 5 6 7 8 9
| Set x = server.CreateObject("scripting.FileSystemObject")
path = "http://srvweb01/Gestion%20de%20production/Rapports%20production/Rapport%20html/Exceptions/"& nom
If x.FileExists(path) Then
response.redirect"http://srvweb01/Gestion%20de%20production/Rapports%20production/Rapport%20html/Exceptions/"& nom )
else
response.redirect("erreur.htm")
end if |
J'ai testé avec un différent path, en renommant mon fichier, et mettant un path complet statique, rien n'y fait.
Merci pour votre aide!