Codeunit - Rename a External File.

Hi all…

Does anyone knows how to rename a file using codeunit.

I used this code to Open and Import the file.

_File.OPEN(‘G:\Intergration\DayEnd2013.csv’);

_File.CREATEINSTREAM(_InStream);

XMLPORT.IMPORT(50006,_InStream);

_File.CLOSE;

After this I want to rename the same file (‘DayEnd2013.csv’).

Does anyone know how to do?

Thanks.

I found the Solution

[^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^] [^]

RENAME(‘G:\Intergration\DayEnd2013.csv’,‘G:\Intergration\DayEnd2013_NEW.csv’);

[ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip] [ip]