I am trying to create an application object that will run a .bat file to
map drives to the local server.

The problem is, I am trying to use the windows variable %computername%

the batch file works when run from the workstation or windows server, but
it doesnt work when run
from ZfD7.

the command is simple

net use s: \%computername:~0,6%shared

(in all cases of local windows workstations and servers, the first 6
characters are also the name of the NW server)

I do not have the Novell Client installed, just the zenworks agent

I first tried to run this from the app obj, then i created a .bat file but
no matter what I do, when zenworks app launcher runs the command, it does
not recognize %computername%

Any help is greatly appreciated