file import

hi all, currently i am working on ax 2012.i have written a code for reading files from a specified folder.

my scenario is i need to read text files from specifed folders, insert read data into table and move the entire file to another folder.i need to do this as a batch process.

.My Class extends RunBase batch.

i have used for getting all text files names. i ve used for reading text files.

the problem is, if i run the class it s working fine. when i add this as a batch process, it is throwing error.

Can anyone suggest me a solution

note: i ve tried WIN::API classes and TextIO classes it is not working .

Knowing that there is an error is not enough. It’s important to know what error it is.

By the way, the RunBase framework is deprecated in AX 2012. Use the SysOperation framework instead.