Results for "Category: Files"
Create a file of any type, filled with x bytes. (x = user specified). Exercises file I/O.
This code allows a user to - Interactivley explore an area of your computer. - Download files based on a database containing 'credits'. One specifies how many files (credits) one may download and link that to a password (or use -1 for unlimited).
This Code when put in any directory will create a HTML page listing all Mp3's in the directory. It also creates a streaming link to the file, so anyone can stream off you MP3's from your server withour downloading them.
No need to purchase expensive components. You can do it all with what you already got. This version is an update for faster speed and reliability. Bugs have been fixed, and the entire code has been commented to walk you through the process.
Allows you to upload multiple files and fields without purchasing or registering COM objects. Great for shared hosts that frown upon 3rd Party com objects or charge an arm and a leg for them. This version uses Classes rather then the dictionary object that I have seem most other people use. Dictionary Objects seem to be flakey with more problems. I have added examples of how to upload a file to a database and the file system. A file is also included that retreives the file from the database.
Allows you to view the binary data of any file (GIF, JPG, ZIP, TXT, HTM, ASP) as if you were looking at a common hex viewer. Bytes are displayed as Hex characters and character data is displayed on the right. Starting positions of each row are displayed on the left.
This is an update of the Thumbnail Based on files in Directory asp file. In this release, put in the same directory the small pictures ( with small_[PictureName].extension ) and the normal size ( [pictureName].extension ). The popup window which is displaying the normal sized picture will be resized automatically regarding the width & height of the displayed picture. You can integrate this function ( with the js file ) in the Tree Menu based on directory asp file. You can use the following syntax on the URL to define a specific sub-directory : /portofolio.asp?whichDir=[subDirectory_Name]
A new release of the Tree Menu Based on Directories. Some bugs has been solved, and the look is more like Windows Explorer. Thnks to Sheeja for the pictures used.
Did you ever want to search for files using your web browser instead of the MS Find Files program? This ASP file searches your hard drive (or web server) for files containing a given string. You can specify a string to search for and the directory to search in (or leave the default c:\ directory).
This script utilizes a mix of server-side ASP and client-side vbscript to provide users with the capability to navigate the directory structure of the web-server, select an image file or a document file, and then pass the file attributes back to an HTML form. If the file selected is an image... The image will be displayed to the user so they know that the selected file is the one they want. In addition... the name, width, height, and size of the selected image is collected (code snippet borrowed from Mike Shaffer on 4guys http://www.4guysfromrolla.com/webtech/050300-1.shtml) and passed back to the HTML form. If the file selected is a document... the user has the option to download and open the selected file. The name and size of the document selected is passed back to the HTML form. Additional functionality: UPLOAD IMAGE OR DOCUMENT FILES to the given directory... DELETE IMAGE OR DOCUMENT FILES in the given directory... CREATE NEW FOLDERS... DELETE FOLDERS. This code can be modified to allow any type of file to be uploaded.
This script provides simple, friendly control of the FileSystemObject of the ASP engine. Fully commented descriptions of each function. Just include this file in any script that need to access the file system.
This code will allow you to do form based file uploads. It supports multiple files and uses only pure ASP. It will parse form data, browse server folders for a save location, and log uploads or failed uploads into a database There are no components to install so it will work on any web server that supports ASP. Just paste this code into a text file and name it saveany.asp. I have tested it on IIS 4 and 5, with IE 4, IE 5 and Netscape 6. With this code you will be able to save a file in any directory that the anonymous account assigned to it (usually IUSER_machinename) has access to so be careful. I should note that the server needs ADO, ADOX and the File System Object installed on it.
This simply code, make .xls fine dinamically. You can create worksheet and report. Any feedback is appreciated.
This is a drawn out example of reading and writing with the FileScriptingObject. This is similar to copying a file, but allows rewriting specific line(s). It's intentionally overdone so that you can delete what you don't want. Includes extensive error handling. I've included lots of comments for newbies. 'T Runstein
Create a download page for your files, and log who downloads them (by capturing their IP address/DNS Host name), and count the downloads by day, week, etc
This program creates a html file in the remote server with the name, content, title as preferred by the user (Dynamic).
This is a ASP File Manager just like used by hosting companies eg: geocities.com etc. This ASP Manager has everything like : user authentication, creating directories, browsing, deleting files and folders, copy, rename etc. Please vote!
This page will handle file uploads much faster than other ASP pages. Indeed, this is a 100% ASP solution, so no need to register any addition components. The mayor speed-gain is cause by the conversion from binary to ansi. Other codes use a loop and the Chr(AscB(MidB(...))), which is awfully slow. Doing that with a 1 MB file would result in doing a For T=1 To 1000000. When handling a file, the old code took 25 seconds to process the file. My code needed 2 seconds, need to say more?
This ASP page is a maintenance tool of sorts. It first lists all of the files in the directory. The links when pressed pass the file name back to the same page which calls a delete function that delete the file which was just clicked on.
Updated 5/29/02: This is a web page that acts as a Remote File Explorer. It exactly replicates the functionality of Windows Explorer for your web server. It displays Drives, Folders, Files, Attributes, and Compression. Configurable to allow downloads, and hidden objects to be seen. This is exactly the same as the Advanced Remote File Explorer except there are no images used, just fonts. Added: Support for ChiliSoftASP