Bonjour,
Je fais un script pour copier sur un espace reseau les raccourcis d'ordinateur (xp et w7)
Je ne voudrais copier que les raccourcis commençant par "outlook" et finissant par url
 
| Code : 
 StrPathResult = "\\serveur\stockage$\log\raccourcisOwa\recup\"StrPathDoc = ""Const OverwriteExisting = TRUESet objFSO = CreateObject("Scripting.FileSystemObject" )Set Network = Wscript.CreateObject("WScript.Network" )If objFSO.FolderExists("C:\Users\Public\Desktop\Logiciels\" ) Then	StrPathDoc = "C:\Users\Public\Desktop\Logiciels\"	If objFSO.FolderExists("c:\Documents and Settings\All Users\Bureau\Logiciels\" ) Then  StrPathDoc = "c:\Documents and Settings\All Users\Bureau\Logiciels\"	end ifend ifif StrPathDoc = "" then WScript.QuitStrNomMachine = ucase(Network.ComputerName)If Not objFSO.FolderExists(StrPathResult & StrNomMachine) then	Set objFolder = objFSO.CreateFolder(StrPathResult & StrNomMachine)end ifobjFSO.CopyFile StrPathDoc & "Outlook*.url" , StrPathResult & StrNomMachine & "\" , OverwriteExisting
 | 
C'est la derniére partie qui ne fonctionne pas
"Outlook*.url"
si je met juste "*.url" ça fonctionne mais ça me renvoi trop de raccourci.
comment fair epour dire sur les fichiers qui commencent par "outlook"
 
merci
 
Message édité par skoizer le 05-06-2015 à 07:22:42
 ---------------
			
je veux tout, tout de suite, et gratuitement ! miladiou !