Hi,
I have to write a build script that will invoke a batch file on remote m/c
[i have mapped using network drives on local m/c to one of the drives of
remote machine].
This batch file uses resources on remote m/c and generates an executable
file. I have to then copy that executable for local m/c.
For Ex: My build script looks like:

<project name="RemoteBATInvoke" basedir="." default="main">

    <property name="BATLoc" value="I:\ParentDir\ChildDir\DirWithBat"/>

    <target name="main">

        <exec dir="${BATLoc}" failonerror="true" executable="cmd.exe">
            <arg line='/c abc.bat > ${BATLoc}\buildlog.txt'/>
        </exec>

    </target>

</project>

Executing the above build script throws an "Access is denied" error.
Can anybody suggest:
Is this setup correct?
If Yes, then what other information has to be put in here to get it working?
If No, then what are the different ways of invoking a remote batch file?

Any other suggestions...

Thanks
Rohit

Reply via email to