1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Set fsoFolder = CreateObject("Scripting.FileSystemObject")
Set folder = fsoFolder.GetFolder(suite)
Set subfolders = folder.SubFolders
for each objFolder in subfolders
chemin2 = objFolder.ShortPath
set shl = createobject("wscript.shell" )
chemin_3D = """" & chemin2 & "\3D"""
Dim chemin_reglage
chemin_reglage = """" & chemin2 & "\FICHE DE REGLAGE - INSTRUCTION"""
shl.run "command /c cacls " & chemin_reglage &" /E /T /C /P jdubillot:R > c:\ip.txt",0,true
shl.run "command /c cacls "& chemin2 &" /E /P jdubillot:R > c:\ip.txt",0,true
shl.run "command /c cacls "& chemin_3D &" /E /T /C /P jdubillot:R > c:\ip.txt",0,true
shl.run "command /c cacls "& chemin2 &"\3D\ARCHIVE /E /T /C /P jdubillot:N > c:\ip.txt",0,true
shl.run "command /c cacls "& chemin2 &"\PLANS /E /T /C /P jdubillot:R > c:\ip.txt",0,true
next |
Partager