The first part of the file name is the user ID plus the extension.
Everytime the user uploads a file I want to delete the old file.
The new file could have different extension than the previous one.
So lets say user 872 wants to upload a new file 872.txt, I want to check the file
and see if a file with userID 872 exists or not. If it exists then delete.
I cant get the if exists part to work.
This is the code I have:
pathToFile2 = Server.mapPath("../../Temp/") & "\" & ID & ".*"
'It looks something like this C:/Temp/872.*
'Delete the old file for this User befor adding the new one
Set fso = Server.CreateObject("Scripting.FileSystemObject")
If fso.FileExists(pathToFile2) Then
Set fso = Nothing
So above when I take the If Exist part out it works. But when the user has no files it fails
Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!
I recently decide that I needed a way to make my pages scream on the net. While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests."
I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update.
The Original Issue
This was written…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA).
For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651
If you want to manage em…