I need to copy a 'prefs.js' file down from the netlogon share at user logon, but the folder it needs to go into would seemingly have a random name with a '.default' at the end, eg
C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\yhin11g0.default
How do I copy into this folder? It sounds such an easy problem (and maybe it is) but I've been tearing my hair out trying to do it. The usual wildcards such as * and ? only seem to work for files but not folders, eg, I am unable to use:
Copy "\\DC\NETLOGON\prefs.js" "C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\*.default\"
I have also tried this with XCOPY, ROBOCOPY and VBScript to no avail. I've probably missed something obvious but if you can put me out of my misery it would be much appreciated!