Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kanga121

    Backup PST script won’t copy from standard outlook folder

    Ok so strDest was wrong strDest = "\\sql1\Backups\PST\" & varUserName & "\" Should look like that. But I’m not sure what you mean by check the content of strTemp? Should it already have an entry in the registry? Because that’s something I don’t want to have to do… walk around to everyone’s...
  2. kanga121

    Backup PST script won’t copy from standard outlook folder

    Yeah sorry, should have said. Nothing happens now, no error, no transfer... nothing @ all Literally nothing happens.
  3. kanga121

    Backup PST script won’t copy from standard outlook folder

    Thanks for all your help mate, it’s very much appreciated… yeah this still didn’t work Does this look right to you?? Set WshShell = CreateObject("Wscript.Shell") varUserName = WshShell.ExpandEnvironmentStrings("%username%") If CStr(strDay) = CStr(Weekday(Now())) Then 'Reads key from...
  4. kanga121

    Backup PST script won’t copy from standard outlook folder

    Hey PHV… I tried your script as Set WshShell = CreateObject("Wscript.Shell") varUserName = WshShell.ExpandEnvironmentStrings("%username%") If CStr(strDay) = CStr(Weekday(Now())) Then 'Reads key from registry to see if we have already backed up today strTemp =...
  5. kanga121

    Script to back up PST files from all computers to Server - vol2

    Hey PHV… I tried your script as Set WshShell = CreateObject("Wscript.Shell") varUserName = WshShell.ExpandEnvironmentStrings("%username%") If CStr(strDay) = CStr(Weekday(Now())) Then 'Reads key from registry to see if we have already backed up today strTemp =...
  6. kanga121

    Backup PST script won’t copy from standard outlook folder

    I got it... I was missing this Set WshShell = CreateObject("Wscript.Shell") varUserName = WshShell.ExpandEnvironmentStrings("%username%")
  7. kanga121

    Backup PST script won’t copy from standard outlook folder

    Forgot to add. Using " & varUserName & " I get an error “path not found” Is there anything else I can use? Thanks guys
  8. kanga121

    Backup PST script won’t copy from standard outlook folder

    Thanks PHV... that seems to have worked... well as long as I don’t use the \" & varUserName & "\ If I explicitly specify my username work fine… but I need to it to be username agnostic. Any ideas?? Thanks, everyone’s as awesome help round here?
  9. kanga121

    Backup PST script won’t copy from standard outlook folder

    Hey, thanks... i did but the "to" path... ON Error Resume Next Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.CopyFile "C:\Documents and Settings\" & varUserName & "\Local Settings\Application Data\Microsoft\Outlook\*.pst" , "\\sql1\Backups\PST\shanet" that's why i say that...
  10. kanga121

    Backup PST script won’t copy from standard outlook folder

    Hey all… needing a little help… I have just started creating a script to back up .PST files to a central location. I’m going to start simple and build it up to do all that I need. But I can’t even get past the copy location, if I use; objFSO.CopyFile "C:\Documents and Settings\" & varUserName &...
  11. kanga121

    Script to back up PST files from all computers to Server - vol2

    Thanks for that mate... i was going to open a new thread, but it is all the same thing really... anyway thanks again :)
  12. kanga121

    Script to back up PST files from all computers to Server - vol2

    OK well now if I try to make it user agnostic by introducing the " & varUserName & " variable (is that what’s it called?) That’s it dies and wont copy… am I missing something that will work for a simple scrip but won’t recognize something more complex?? ON Error Resume Next Set objFSO =...
  13. kanga121

    Script to back up PST files from all computers to Server - vol2

    Sorry guys... it's all good... it just seems to work now
  14. kanga121

    Script to back up PST files from all computers to Server - vol2

    I am following another script covering this… but my file path seems to be wrong. It just wont work and I’m not sure why. ON Error Resume Next Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.CopyFile "C:\Documents and Settings\shanet\Local Settings\Application...

Part and Inventory Search

Back
Top