+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
Scripts Thread, VBS - Script to Create Folder With Date/Time in Home Area in Coding and Web Development; Originally Posted by Miscbrah Well, whatever your motivation I couldn't even have come close to this so thanks. Still getting ...
  1. #16

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,447
    Thank Post
    1,438
    Thanked 1,168 Times in 797 Posts
    Rep Power
    707
    Quote Originally Posted by Miscbrah View Post
    Well, whatever your motivation I couldn't even have come close to this so thanks.

    Still getting an error off it, this time file not found on line 43 char 3.
    Odd, this is the first version I've actually tested as working! lol.

    I'm a little stumped... you could add in a line just before the line causing an error that pops up a message box containing the intended destination and see if it brings anything to light...

    One thing that comes to mind is that the script will only create the first folder from the intial sDestination, so if say sDestination was at X:\folder1\sDest and folder 1 didn't exist or X: wasn't a valid drive letter, then the code would fall over...

  2. #17

    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    885
    Thank Post
    244
    Thanked 251 Times in 151 Posts
    Rep Power
    114
    I'll have a look, see what I can understand.

    You're a wonderful man L.O. thanks loads!

  3. #18

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,708
    Thank Post
    3,244
    Thanked 1,048 Times in 970 Posts
    Rep Power
    364
    @Mischbrah - any chance you can post back with a step by step of what you want the script to do

    Did you want it to retain the same structure etc etc

    Just wondering if you could possibly use xcopy or similar command line command by using %comspec% with the relevant switches etc in the script ?

    Maybe easier then trying to enumerate / recurse through all directories / files etc etc

  4. Thanks to mac_shinobi from:

    Miscbrah (8th May 2013)

  5. #19

    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    885
    Thank Post
    244
    Thanked 251 Times in 151 Posts
    Rep Power
    114
    Hi! Yes the script would ideally create a folder, named to include the current date and time (to the second) in a user's home area, and move into that everything from the user's documents, downloads and pictures and videos folder from their profile. Users could run it before submitting a case for the red X of death in the taskbar.

    I would use folder redirection, but it plain isn't working here. Downloads I've redirected through GP with Chrome's policies.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 1st July 2014, 08:34 AM
  2. Script to Create folders in folders
    By ed0z16k in forum Windows 7
    Replies: 4
    Last Post: 12th October 2012, 03:38 PM
  3. VBS to create folder with permissions
    By Admiral208 in forum How do you do....it?
    Replies: 5
    Last Post: 21st October 2011, 04:56 PM
  4. Replies: 36
    Last Post: 5th August 2011, 07:13 AM
  5. VB Script to create folders
    By markesmith in forum Scripts
    Replies: 2
    Last Post: 26th April 2007, 03:03 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •