1 of 1 people found this helpful
that stuff needs to run from a managed script, the variables are resolved on the core using its database knowledge. I've started the process of writing a tool that creates //server/share/machine/user directories as part of a file upload program, but probably doesn't do much for you (it's in Perl of course, and it'll be a while before I finish at this rate). Still, the general idea is straightforward enough for a language powerful enough to iterate...
I think I *may* have something here...
Run from source! (Preferred server) Then instruct your VBS to copy to current wscript source.
sn = Wscript.ScriptName ' Script Name
fn = Wscript.ScriptFullName ' Fully Qualified Script Name
fp = Replace(fn, "\" & sn, "") ' Drive / Folder path
set demofile = objFSO.GetFile("c:\MigData.txt")
demofile.Copy(fp & "\" & strCompName & "-" & strUser & ".txt")