Thanks Guitarzan, I was clearly complicating things!!
My new single line of code for logoff is:
robocopy "%localappdata%\Sage\Sage Report Designer 2007" "\\server\profiles\%username%.V2\localappdata\Sage\Sage Report Designer 2007" /MIR /njh /njs /ndl /nc /ns /np /nfl
and to logon:
robocopy...
Thanks guitarzan, that was exactly what I needed and works perfectly.
However, I've come across another issue which I hope you can help me with.
I've discovered that although the code below works well at backing up and restoring the data with overwrites, it doesn't work well when file names...
If anyone is interested, below is the complete code I'm using...
Option Explicit
On Error Resume Next
' Logoff Script to Copy Files from local hard drive to Network
'==========================================================================
' Read LDAP(Active Directory) information to...
Hi Everyone,
I am using some code kindly provided by snotmore...
Call subCreateFolders("C:\test1\test2\test3\")
Sub subCreateFolders(strPath)
Dim objFileSys
Dim strPath, strNewFolder
Set objFileSys = CreateObject("Scripting.FileSystemObject")
If Right(strPath, 1) <> "\"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.