locked
Vista junction point issue RRS feed

  • Question

  • Hi all,
    I have an issue with a script I made for calculating “documents” folder size.
    It’s OK on XP but on all VISTA systems it’s not working. I get a “permission 
    denied”
    Here is my (simple) script. 
    
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set MyDspace = objFSO.GetFolder("C:\Users\My_Name\Documents")
    IntSpace1 = MyDspace.Size
    Wscript.echo IntSpace1
    
    I get a “permission denied” error when I launch it.
    I know why but I don’t how to solve it…
    
    The error is related to “My Pictures”, “My Music” and “My Videos” junction 
    points located in the “Documents” folder.
    
    How can my script calculate “documents” folder size skipping those 3 
    junction points ?
    
    Thanks for your reply !
    

     

    Tuesday, September 4, 2007 8:36 AM