Creating multiple shortcuts, and automatically creating shortcuts

Author Message
Rock

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 1/16/2012
  • Status: offline
Creating multiple shortcuts, and automatically creating shortcuts Monday, January 16, 2012 7:45 AM (permalink)
0
Hi, I'm new to VBScripting, but I am not a novice at programming and other scripting languages.
 
Before I get to grips with VBScript could some kind soul tell me if my couple of tasks are feasible with VBScript.
 
Task 1: Imagine I have a folder named FOLDER-A with 100 mp4 files in it,
00.mp4
~
99.mp4
I have another folder named FOLDER-B and I want to create 100 shortcuts in it to all the files in FOLDER-A. Creating one shortcut is easy enough, but doing 100 by hand is tedious, hence automating the process with a script.
 
That takes care of an existing folder with files.
 
Task 2:  is to monitor FOLDER-A for any new files saved there, and automatically add a shortcut to the new file in FOLDER-B
 
Do you think that these two tasks can be done with VBScript, and if so, which commands should I look at first?
 
Many thanks
 
Rock
 
 
#1
    59cobalt

    • Total Posts : 969
    • Scores: 91
    • Reward points : 0
    • Joined: 7/17/2011
    • Status: offline
    Re:Creating multiple shortcuts, and automatically creating shortcuts Monday, January 16, 2012 9:29 AM (permalink)
    0
    Task 1: Possible, but wouldn't it be far easier to just select all files and <Ctrl>-<Shift>-drag them to the destination folder?
     
    Task 2: Should be possible as well using WMI event notifications. I have never used this myself, though, so perhaps some of the other regulars can provide you with more details.
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9