creamers Posted August 16, 2013 Share Posted August 16, 2013 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 EndIfMy brain has currently failed meI 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. Link to comment Share on other sites More sharing options...
Moderators Solution JLogan3o13 Posted August 16, 2013 Moderators Solution Share Posted August 16, 2013 InetGet("kjfngkdfjgn.com", @TempDir & "\Test.txt" If FileExists(@TempDir & "\Test.txt") Then MsgBox(0, "", "Works!") FileDelete(@TempDir & "\Test.txt") EndIf creamers 1 "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! Link to comment Share on other sites More sharing options...
creamers Posted August 16, 2013 Author Share Posted August 16, 2013 Thank you very much exactly what I needed. Link to comment Share on other sites More sharing options...
FireFox Posted August 16, 2013 Share Posted August 16, 2013 (edited) The Best Answer post should be JLogan3o13's post, whatever. Edited August 16, 2013 by FireFox Link to comment Share on other sites More sharing options...
creamers Posted August 16, 2013 Author Share Posted August 16, 2013 Sorry I didn't realize it was choosing me as a best answer. Fixed. Merci. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 17, 2013 Moderators Share Posted August 17, 2013 Not a problem creamers, I don't collect them Glad you found your answer. "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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now