Error: no files found with the specified search criteria

Feb 18, 2013 at 1:25 PM

I'm successfully running the hvbackup.exe script on a hyper-v server but I'm getting the above error when trying to run it on another server.

I've copied the files over from the working server and I've found that if i run the last portion of the script directly from the cmd line it works
(HVBackup.exe -l VPCSERV08-HV -o %BCKPATH% 1> lastlog_out.txt 2> lastlog_err.txt)

The whole script is as follows

set BCKPATH="\servername\Backup"

rem net use %BCKPATH% /user:domain\username password

pushd %BCKPATH% && forfiles.exe -m *.zip -d -5 -c "cmd /c del @path" popd HVBackup.exe -l VPCSERV08-HV -o %BCKPATH% 1> lastlog_out.txt 2> lastlog_err.txt

Any help would be appreciated