Beste Tweakers,
als ik het volgende script uitvoer
krijg ik steeds een rare foutmelding doe ik iets fout?
iemand een idee
als ik het volgende script uitvoer
Visual Basic:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| Option Explicit Dim objFSO, objTextFile, strText, arrUsers, strUser Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile ("c:\users.txt", ForReading) strText = objTextFile.ReadAll objTextFile.Close arrUsers = Split(strText, vbCrLf) For Each strUser In arrUsers CopyBookmarks (strUser) Next rem ______________________________________________SUB___________________ Sub CopyBookmarks (argUser) Dim object, strFilePath, strDestination Set object = CreateObject("Scripting.FileSystemObject") If object.FolderExists("\\fzrmfs-i01\profiles\" + argUser + ".000")Then strFilePath = ("\\fzrmfs-i01\profiles\" + argUser + ".000\Favorites\*.*") Else strFilePath =("\\fzrmfs-i01\profiles\" + argUser + "\Favorites\*.*") End If strDestination =("\\fzr-cl01-home-server\home\" + argUser +"\Windows NT 5.1 Workstation Profile\Favorieten\*") object.CopyFolder strFilePath, strDestination ,True End Sub |
krijg ik steeds een rare foutmelding doe ik iets fout?
iemand een idee
[ Voor 0% gewijzigd door een moderator op 27-12-2007 15:34 . Reden: Code tags toegevoegd ]