Does CopyFile() work in WebLoad 3.5?
In my InitAgenda() I have several CopyFile (myFile, myFile) where myFile is the name of the file to copy.
The files are in the same directory that has the agenda on the Central Console. On the Load Generator systems, all default directories point to c:\WebLoadConfig.
So, I would expect that myfile would be copied to c:\WebLoadConfig\myFile on the Load Generators, but they don't get copied and then the script fails since not all the files are present. I have to manually copy the files to c:\WebLoadConfig and then everything works. This is a pain when the configuration files are changing.
Am I doing something wrong?
555 North Mathilda Ave
Sunnyvale, CA 94086
Re: Does CopyFile() work in WebLoad 3.5?
OK, I have this solved. Putting in the path of where I wanted the files saved made everything work:
var myFile = "DataFile.dat";
var myLocation = "c:\\WebLoadConfig\\";
CopyFile (myFile, myLocation + myFile);