Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
If Folder Doesnt Exist
John Davy 
         
5 years ago
Hi Rick,
I watched you video on Access Backup several times and then
made a replica. I also made a Setup Form with the path to DestFolder and alsos the path to the ServerFile. Then I created TempVars for each on Load of the MainMenuF. I create the DestFolder if it does not exist. My question is:
My DestFolder is off the D: drive  ie'> D:\MyDestFoler. Do you have any videos to show how to deal with creating the folder is it is 2 levels deep. ie. D:\MyDestFolder\John?

Thanks
John Davy
Alex Hedley  @Reply  
           
5 years ago
You could convert this CreateSubfolders.vbs to VBA.
Alex Hedley  @Reply  
           
5 years ago
Or try something like

If Dir(YourPath, vbDirectory) = "" Then
    Shell ("cmd /c mkdir """ & YourPath & """")
End If


Source: StackOverflow
Richard Rost  @Reply  
          
5 years ago
I did that in ABCD5, I think, but I just manually added the multiple levels. I'm sure you could easily write a recursive sub to do that. Just loop down the full path and stop at each "\" and add that folder.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/8/2026 11:19:40 PM. PLT: 1s