Automation in NAS

elmoelmo Member Posts: 4
We have scheduled a job in NAS. This job creates a folder 'ABC', if it does not exist. We are using
Automation - 'Microsoft Scripting Runtime'.FileSystemObject. Somehow the job is failing eventhough I have used GUIALLOWED for all message box. I am not sure if NAS can handle Automation.

Please advise. It is pretty urgent. Thanks in advance.

Comments

  • ara3nara3n Member Posts: 9,256
    can you paste the code in here?


    what does the event log error say?


    If it's pretty urgent, you can contact MS and open support ticket.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You don't have to use GUIALLOWED before your MESSAGE-statements. These messages automatically appear in the EventLog, when executed through NAS.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • garakgarak Member Posts: 3,263
    check the Eventlog of your NAS machine and if you cant understand why he stops the working, you can also debug the NAS viewtopic.php?f=23&t=25967

    Regards
    Do you make it right, it works too!
  • pduckpduck Member Posts: 147
    NAS hasn't any problem with automation. Maybe the user under which NAS runs isn't allowed to do the file operation with the MS Script? Test the code which will be run by NAS with the same user account in your client.
Sign In or Register to comment.