Results 1 to 4 of 4
  1. #1
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150

    Create folder shortcut

    Hello all,



    Apologies for the utter laziness of this post, I have had a google but couldn't quite find something right and working from home appears to me eating my brain.

    I have hopefully a very simple task to perform.

    I have a folder WpDir and a folder WoDir

    Within WoDir, I want to create a shortcut to WpDir. It's that simple. Would any of you lovely people be able to help me with the code?

    Thank-you thank-you thank-you

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Does this have something associated within Access? That is are you trying to open a folder within an Access application?

  3. #3
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150
    Don't worry, I've got it. Used this.

    Code:
    
    With CreateObject("WScript.Shell").createShortcut(WoPath & "\ Workplan.lnk")
            .TargetPath WpPath
              . Desctription "Work Plan"
              .Save
    End With
    

  4. #4
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150
    I'm doing file manipulation in windows explorer based on what people select i access folders, automatically creating the directories they need and so forth

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Create A Folder With Textbox Value
    By Eranka in forum Access
    Replies: 10
    Last Post: 06-25-2018, 09:02 AM
  2. How to Create Shortcut
    By mks123 in forum Access
    Replies: 9
    Last Post: 01-05-2017, 07:13 PM
  3. Replies: 6
    Last Post: 07-04-2015, 07:57 PM
  4. Replies: 1
    Last Post: 11-25-2014, 01:42 PM
  5. Unable to create shortcut menu
    By lawdy in forum Programming
    Replies: 36
    Last Post: 05-25-2014, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums