I need to copy files to the user profile on the computer using my VBS login
script, and I need to make it conditional. Currently I have the following:
Set oFSO = CreateObject("Scripting.FileSystemObject")
If oFSO.FileExists("c:\Folder\File.exe") Then
oFSO.GetFile("C:\Folder\File.exe").Attributes = 0 'In case it is read-only
oFSO.CopyFile \\server\share\file.exe, "c:\Folder\", True
End If
I need to do the following logic:
If exist C:\Documents and Settings\%username%\Application
Data\Microsoft\Signatures\%username%.htm
then copy \\server\share\%username%\*.* C:\Documents and
Settings\%username%\Application Data\Microsoft\Signatures\
If anyone can provide me with the code to do this, it would be greatly
appreciated. The conditional is not important, but the variable is.
THanks,
Michael