Welcome To Snipplr


Everyone's Recent Snippets Tagged directory



« Prev 1 2 3 4
  1. FAV

    Calculate Full Size of Directory in PHP

    This code allows to calculate the full size of a directory using PHP.
    PHP 3 views posted 2 years ago by apphp-snippets
  2. FAV

    Create a compressed TAR archive preserving permissions

    Create a compressed TAR archive preserving permissions
    Bash 7 views posted 3 years ago by rm1984
  3. FAV

    Recursively find and list the last modified files in a directory

    Recursively find and list the last modified files in a directory
    Bash 5 views posted 3 years ago by rm1984
  4. FAV

    Redirect to Another Directory in .htaccess

    This example shows you how to create redirection o another directory. It may be useful, for example, when you have a project, placed in sub-directory.
    PHP 11 views posted 3 years ago by apphp-snippets
  5. FAV

    Get Current Server Path in PHP

    Get Current Server Path in PHP
    PHP saved by 3 people 5 views posted 4 years ago by ursdeep
  6. FAV

    An Utility to Search Text in All Files of Any Directory in PHP

    An Utility to Search Text in All Files of Any Directory in PHP
    PHP saved by 5 people 7 views posted 4 years ago by ursdeep
  7. FAV

    Ensure string ends with a /

    Bash 3 views posted 5 years ago by jlmarks
  8. FAV

    Check Folder Directory Exists Using VB.NET

    I came across a permission issue when using the standard Directory.Exists() method, so I came up with another way to check if a Directory exists avoiding those permission issues. This works very well. It can be converted to C'#.
    VB.NET 10 views posted 6 years ago by nimblebits
  9. FAV

    Batch code to process files with a certain filename in a directory

    This will loop through files in somefolder with the extension .c, print out the filename and compile the files.
    DOS Batch 10 views posted 6 years ago by stianlagstad
  10. FAV

    List Directory Contents in PHP

    This code allows to list the contents of any given directory.
    PHP saved by 2 people 12 views posted 7 years ago by apphp-snippets
  11. FAV

    Fix Timthumb Script When Using a URL That Contains Tildes (~)

    If you are using the [TimThumb](http://code.google.com/p/timthumb/ "TimThumb on Google Code") script with a URL the contains tildes (~) and images are breaking, here is the fix... I did not create this snippet but found it extremely useful so I th...
    PHP 5 views posted 7 years ago by tacudtap
  12. FAV

    .NET - C# - Basics - Examples - Directory IO and DateTime Parsing

    Example of the usage of Directory IO class and the parsing of strings to DateTime.
    C# saved by 3 people 10 views posted 7 years ago by denakitan
  13. FAV

    list all files in directory

    list all files in directory and subdirectory
    PHP saved by 3 people 10 views posted 7 years ago by ne7son
  14. FAV

    Download Directory with scp

    download directory to localhost home folder new-dir-name
    Bash 4 views posted 7 years ago by zackn9ne
  15. FAV

    directoryList in Rhino

    A function that will return a list of files from a directory.
    JavaScript 4 views posted 7 years ago by tpryan
  16. FAV

    Listing directiories in shell

    Command list subdirectories in current directory.
    Awk 8 views posted 8 years ago by ef
  17. FAV

    WhoIsLoggedIn.vbs

    Run this script from a command prompt, and you'll be asked for the IP Address or Host Name. Script will first check if PC is ping-able and will return an error message on any unreachable host. If the computer is running, script will return with user...
    Visual Basic saved by 5 people 4 views posted 8 years ago by RobertHirabayashi
  18. FAV

    QueryDNSEnries-AllWindowsCrawler.vbs

    This script, building on my AllWindowsCrawler snippet, records DNS server entries (up to 3) as well as the IP Address and AD site location for a given Server (the AllWindows portion is commented out). This query is filtered to select only IP enabled...
    Visual Basic 0 views posted 8 years ago by RobertHirabayashi
  19. FAV

    _Snippet-AllWindowsCrawler.vbs

    This script is a wrapper for delivering code to every computer object in a domain, and outputs the results to a time code stamped text or CSV file. Every computer is pinged to determine if it is up prior to running the payload, to prevent wasted time...
    Visual Basic 0 views posted 8 years ago by RobertHirabayashi
  20. FAV

    Getting files, folders, file count, folder count in a directory with php

    Getting files, folders, file count, folder count in a directory with php and writing them to a web page
    PHP saved by 3 people 19 views posted 8 years ago by duzenz
  21. FAV

    File & Directory Remove Script

    Modified a little bit to make it easier to change the location of the recycle bin.
    Bash 3 views posted 8 years ago by mkornatz
  22. FAV

    FUNCTION GetUserDN

    Retrieves Active Directory distinguished name given user's SAMAccountName
    Visual Basic 3 views posted 8 years ago by lrduncan
  23. FAV

    Get Directory List PHP

    PHP 4 views posted 8 years ago by nebojsac
  24. FAV

    find the largest directories in a Unix shell

    Bash 7 views posted 8 years ago by pyroblue
  25. FAV

    check directory is empty

    Perl 5 views posted 8 years ago by alfirth
  26. FAV

    Backup Directory and Content

    Bash 4 views posted 8 years ago by tribal
  27. FAV

    add file to all directories recursively

    currently formatted for use on mediatemple server. replace file path with absolute path of resources.
    Bash 1 views posted 8 years ago by dan_hoerr
  28. FAV

    Empty directory recursively in PHP

    This function empties the folder recursively. Two parameters are passed in the function, First one is the directory to be emptied and second one is the flag to determine whether to delete the given folder. If set 'true', given folder is also removed...
    PHP 5 views posted 9 years ago by nilambar
  29. FAV

    Recursive Glob File Tree

    There are a lot of recursive glob functions out there but they don't build a tree, they build a 1 dimensional array...This function builds a directory tree.
    PHP saved by 2 people 7 views posted 9 years ago by danoph
  30. FAV

    Get logged in user from Active Directory and then get some of their AD attributes

    C# 6 views posted 9 years ago by lance
« Prev 1 2 3 4