thank you for answer, but i want to create a new folder on Agent installed machine (not a folder that already exists) and then save a .cvs file in the new folder.
The file will be the source of my new mapping.
You cannot change the directory name during runtime. You need to create directory and in connection you need to update it. You can use below workaround for your requirement.
1) Create a directory in pre-processing command.
2) Run the job and generate the .csv file at predefined path
3) In post processing command, copy the file from generic path to newly created directory
Please let me know in case you have some other query
in my context any means existing folder or newly created folder!
Give try. It doesnt take much time than posting here
if helps mark it as correct. that would help others for similar issue.