Not Able to create and execute batch file in Navison 2013

Hivarun
Hivarun Member Posts: 8
edited 2013-03-29 in NAV Three Tier
Dear All

I want to create and execute a batch file through navision 2013 using RTC but system is giving error .

I have used following code

txt_File.CREATE('C:\Temp\FTPTransfer.bat');

Please help me.

Comments

  • MMV
    MMV Member Posts: 99
    This seems to be a user permission issue due to the policies set in the system, not related to Navision. Try creating a batch file manually at the specified path.
  • Hivarun
    Hivarun Member Posts: 8
    I am able to create batch file manually.
    This batch file i am creating on RTC then it is giving the error.
  • Luc_VanDyck
    Luc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You know that txt_File.CREATE('C:\Temp\FTPTransfer.bat'); will create the bat-file in the C:\Temp folder of the server where the middle tier (NAV server) is running? This is not necessarily the same PC as where the RTC client is running.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Hivarun
    Hivarun Member Posts: 8
    Currently i am trying on my local system where both server and RTC is running.
    By the way when i use this code in ealier version of Navision like SP1 it is working there.
    Only 2013 is giving error.
  • marianaprm
    marianaprm Member Posts: 6
    Hello,

    I'm having the same problem as Hivarun. Does anybody knows how to fix it?

    Thank you all
  • BlackBird
    BlackBird Member Posts: 52
    In de NAV MMC snap in, under Client Services there's a setting called 'Prohibited File Types'. You can remove .bat from the range of filetypes.