Skip to Content
avatar image
Former Member

Command to delete .TXT file from Share

Hi,

I have written below command to delete .TXT file from share.

EXEC ('cmd','DEL \\ustcf001\dev\abc.txt',8);

Command executed successfully but file is not being deleted from share.

Could you please give me correct syntax.

Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 27, 2015 at 06:41 AM

    What's the return value of the function call? print(EXEC ('cmd','DEL \\ustcf001\dev\abc.txt',8));

    If the DS install user does not have the necessary privileges, the file isn't deleted.

    Add comment
    10|10000 characters needed characters exceeded