Jump to content

Recommended Posts

Posted

InetGet( "kjfngkdfjgn.com", "%temptest.txt")
If FileExists("test.txt") Then
MsgBox(0, "WORKS", "File exists")
FileDelete("& @TempDir
@TempDir
Else
MsgBox(0, "Error", "This script has been deactivated
EndIf

My brain has currently failed me

I have tested the function though I am having trouble understanding appending text. Basically I need test.txt to to saved to @TempDir though I am unsure of how to apply the @TempDir Variable. I then need to check if @TempDir text.txt exists.

I know this is real simple, though I can not wrap my head on the correct syntax usage.

  • Moderators
  • Solution
Posted

InetGet("kjfngkdfjgn.com", @TempDir & "\Test.txt"

If FileExists(@TempDir & "\Test.txt") Then
    MsgBox(0, "", "Works!")
    FileDelete(@TempDir & "\Test.txt")
EndIf

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...