<P> So to run a batch file on a UNC share, assign a temporary drive letter to the UNC share, and use the UNC share as the working directory of the batch file, a Windows shortcut can be constructed that looks like this: </P> <Ul> <Li> Target:% COMSPEC% / E: ON / C "PUSHD "" "\ \ SERVER \ SHARE \ DIR1 \ DIR2 \" "" & BATCHFILE. BAT & POPD" </Li> </Ul> <Li> Target:% COMSPEC% / E: ON / C "PUSHD "" "\ \ SERVER \ SHARE \ DIR1 \ DIR2 \" "" & BATCHFILE. BAT & POPD" </Li> <P> The working directory attribute of this shortcut is ignored . </P>

Where are batch files stored in windows 7