Hello,
I want to move an incoming file by an AS2 partner to a specific folder. At "Ereignisse" I added the following line at "Kommando nach dem Empfang"
"move ${filename} d:\${originalfilename}", without the ".
Unfortunately the files are stored in "D:\mendelson\as2\messages\Gudeco\inbox". What do I understand wrong?
Kind reagrds
Jay
Foren
AS2
- Anmelden oder Registieren, um Kommentare verfassen zu können
Comments
Sorry but this is a…
Gespeichert von jlee am/um Fr, 03/08/2019 - 18:21
Sorry but this is a different language so mine says something different but mine I go to the partner > events > select command on msg receipt
you should be able to do something like this
move ${filename} ../../../..
Yes, thats the correct point…
Gespeichert von JD168 am/um Mo, 03/11/2019 - 12:04
Antwort auf Sorry but this is a… von jlee
Yes, thats the correct point where I also added the line "move ${filename} d:\${originalfilename}". In the job log I see it correct path/variables are read and used, but the file does not end in d:\.
I checked the access rights settings. AS2 service is running as local system. I did test the cmd line as system and it did work.
We had a similar problem and…
Gespeichert von dst am/um Mi, 04/10/2019 - 13:32
We had a similar problem and solved it by using a batch file. Our entry "Kommando nach dem Empfang" is c:\batch\empf.bat "${filename}"
And this is empf.bat:
set nn=%1
set /a s=60
set /a l=500
call set nn1=%%nn:~%s%,%l%%%
move %1 C:\archiv\%nn1%
Depending on the lenght of your path you can change the values of s and l in the batch file or use additional variables on calling the batch file.