+ Post New Thread
Results 1 to 1 of 1
Scripts Thread, Search & Log path+filenames that are too long (Profiles) in Coding and Web Development; Due to a few problems where Roaming profiles have failed to load. I've written a script that uses a target ...
  1. #1
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Search & Log path+filenames that are too long (Profiles)

    Due to a few problems where Roaming profiles have failed to load. I've written a script that uses a target folder as a search base and then scans for any file paths that are overly long and likely to cause an error.

    The script has a few variables that need to be edited as follows:

    • debugme = 0
      Set this to a value of 1 if you want verbose echo pop ups while running the script
      .
    • objStartFolder = "\\school\target"
      Set this to the target folder you wish to scan (the script scans all sub-folders/files too)
      .
    • strLogDirectory = "\\school\log_folder"
      Set to the folder where you log will be saved
      .
    • strLogFile = "\overlongfiles.txt"
      Set to the log filename you want to use.


    Note: The script will create the log folder and file if they don't exist already

    In terms of functionality, all the script does is scan and log the paths... It won't truncate the names automatically or anything else reasonably "clever".

    Hope it's of some use though.

    Martin
    Attached Files Attached Files

SHARE:
+ Post New Thread

Similar Threads

  1. Long time to Log Off - New Dell Vostro 3500
    By FragglePete in forum Windows 7
    Replies: 5
    Last Post: 29th November 2010, 03:09 PM
  2. Really long filenames
    By cromertech in forum Windows Server 2008 R2
    Replies: 6
    Last Post: 17th June 2010, 06:44 PM
  3. Any solution to the 260 long path problem?
    By eejit in forum Windows
    Replies: 5
    Last Post: 26th November 2009, 11:16 AM
  4. Replies: 4
    Last Post: 31st July 2009, 11:43 AM
  5. Driver search path
    By Quackers in forum Windows
    Replies: 4
    Last Post: 13th March 2009, 11:54 AM

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
  •