Results 1 to 4 of 4

Thread: Preview LSP files in Windows Explorer

  1. #1
    AUGI Director cadpoobah's Avatar
    Join Date
    2015-09
    Location
    Central Ohio
    Posts
    437
    Login to Give a bone
    0

    Default Preview LSP files in Windows Explorer

    Just passing this along, fwiw.

    I inherited a folder full of AutoLISP files from previous CAD Manager, and needed a way to peruse them. The "preview pane" in Windows Explorer didn't recognize LSP files as a text file. I ran across this registry hack for .LOG files that, with a slight tweak, worked like a charm.

    I followed Ivan's instructions for creating a REG file and just modified it, changing the ".log" to ".lsp". It creates a text (REG) file that modifies your registry accordingly.
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\.lsp]
    @="txtfile"
    "Content Type"="text/plain"
    "PerceivedType"="text"
    Obviously, you can tweak this to work with other types of code files as well.

    Enjoy!

  2. #2
    Member
    Join Date
    2008-05
    Location
    Queenstown, New Zealand
    Posts
    8
    Login to Give a bone
    0

    Default Re: Preview LSP files in Windows Explorer

    Hi Chris

    I am trying to get the preview to work and tried copying your code and making a .reg file but that did not work. I also tried typing the settings in manually,but think they are wrong. Maybe as a Windows 10 machine. Can you advise what the manual settings should be. I have made them all just string entries is the @ symbolled one meant to be something else?



    Regards

    Justin
    Attached Images Attached Images

  3. #3
    Member
    Join Date
    2008-05
    Location
    Queenstown, New Zealand
    Posts
    8
    Login to Give a bone
    0

    Default Re: Preview LSP files in Windows Explorer

    Got it to work with these settings
    Attached Images Attached Images

  4. #4
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Preview LSP files in Windows Explorer

    The OP's original .REG code works just fine for me on Win10x64 Enterprise, FWIW:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\.lsp]
    @="txtfile"
    "Content Type"="text/plain"
    "PerceivedType"="text"
    As to your question, @ in a .REG file simply means '(Default)'.

    Cheers
    Last edited by BlackBox; 2018-11-08 at 02:52 PM.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. 2012: DWG preview in windows 7 explorer not working properly
    By Yancka in forum AutoCAD General
    Replies: 4
    Last Post: 2011-10-05, 06:33 AM
  2. Old files causing Windows 7 Explorer to crash?
    By patricks in forum Revit Architecture - General
    Replies: 23
    Last Post: 2010-10-07, 11:02 PM
  3. Can't Delete RFA Files in Windows Explorer
    By rookwood in forum Revit Architecture - General
    Replies: 45
    Last Post: 2010-10-07, 04:23 PM
  4. previews of Revit project Files and Families in the Windows Explorer
    By nihar.ranjan in forum Revit Architecture - General
    Replies: 1
    Last Post: 2008-11-24, 10:01 AM
  5. Print DWF files from Windows Explorer
    By Mike.Perry in forum DWF Viewer - General
    Replies: 2
    Last Post: 2006-07-16, 05:22 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
  •