Options

Not Able to create and execute batch file in Navison 2013

HivarunHivarun 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

  • Options
    MMVMMV 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.
  • Options
    HivarunHivarun 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.
  • Options
    Luc_VanDyckLuc_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)
  • Options
    HivarunHivarun 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.
  • Options
    marianaprmmarianaprm Member Posts: 6
    Hello,

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

    Thank you all
  • Options
    BlackBirdBlackBird 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.
Sign In or Register to comment.