Jump to content

Deleting an Uploaded File from LTShare

Recommended Posts

so currently I have a script that Uploads a txt file that I create inside my script. However, I want my script to delete the uploaded file after I send it in an email. I thought I could do delete file and specify the location of the online server but it is still checking for it locally. How can I add a line in my script to remove that file from the LTShare server after its sent in an email?

Link to post
Share on other sites
  • 3 weeks later...

You need to add a line in your script:

Function: Variable Set

Set Type: Constant

Parameter: Computer ID number of your LT server

Variable Name: computerid

This changes the machine you are running the next lines of script on, to your LT server. Then you can run 'del "address of file on LT server" Shell command on the next line of script, to delete the file from the LTShare.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...