|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
VBA - Moving files
Hey this is not necessary for what I'm working on but then I thought t would be fun to try.
I am inputting data from a CSV. Once all the info is put in the tables I delete the CSV. There is more code later, so if an error occurs during the process I want to grab the deleted CSV from recycling bin (windows2000 if it makes a difference) and put it back on the desktop. Is this possible? (I realize I could just delete the file at the end which in the end is what I'll do, but like I said this sounded fun to try imo) Thanks ![]() |
|
#2
|
|||
|
|||
|
When you delete a file using code it's pretty much gone so there's no real way to move it to or recover it from the recycling bin as opposed to deleting it entirely. However you could have some sort of confirmation/validation routine before you perform the delete with code to make sure everything is alright.
__________________
---------------- If we've helped you and you have solved your problem please post that it's been resolved so we know! The suspense kills me! |
|
#3
|
||||
|
||||
|
it could be done, but not easily. The better bet would be to move the file into a temp folder pending to be sent to the recycle bin.
__________________
Did I help you? If so gimme rep by clicking on the at the top right corner of this post ![]() Madness does not always howl. Sometimes, it is the quiet voice at the end of the day saying, "Hey, is there room in your head for one more?" |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > VBA - Moving files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
![]() |
|