Hi Kyle, On 12.01.2010 23:28, [email protected] wrote: > Is it somehow possible to use a variable on the client WPKG file path to > point to the wpkg.js file? > > I see the following options listed in the documentation: > \\server\wpkg\scripts\wpkg.js > \\192.168.1.1\wpkg\scripts\wpkg.js > W:\folder\wpkg.js > > I'm trying to do something like this: > %SERVER%\wpkg\scripts\wpkg.js > > I have tried both setting a variable where SERVER in this case points to > \\192.168.1.1 in the WPKG client as well as setting a system > environment variable in the client OS and neither seem to work. The client > doesn't seem to be able to interpret %SERVER% as a variable > and instead enters it as directly as %SERVER%. Any other ideas as to how > this can be accomplished?
You might just simply call a shell script instead of wpkg.js directly: @echo off start /wait "wpkg" "cscript.exe" "%SERVER%\wpkg\scripts\wpkg.js" /synchronize So you can use any variable - no matter if system-wide defined on the client or defined within the WPKG-Client. Or just define the variable within the shell script - whatever you like. br, Rainer ------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/wpkg-users
