Welcome To Snipplr
Everyone's Recent Snippets Tagged file
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
How to create, copy, move, delete a file?
Pour créer, copier, déplacer ou supprimer un fichier, on utilise la classe System.IO.File
0
1091
posted 5 years ago by martinbrait
This example shows you how to restrict to a specific file or multiple files. Add the following code block and edit the file name/s according to yuor needs.
0
1160
posted 7 years ago by apphp-snippets
This is a simple script which downloads the latest "LoRa Server" files from the repository of the user brocaar in GitHub.
Just make the file executable with a "chmod +x script_installer.sh" and run it, the program will give you the latest releases o...
0
874
posted 8 years ago by SoroushBlaster
This technical tip shows how to Set Line Spacing of the Paragraph in a Shape or Textbox in .NET applications. You can set the line space of the paragraph, its space before and space after using the TextParagraph.LineSpace, TextParagraph.SpaceBefore a...
0
2096
posted 8 years ago by sherazam
This technical tip shows how .NET developers can add line object to an Existing PDF File inside their .NET applications. Aspose.Pdf for .NET supports the feature to add graph objects (for example graph, line, rectangle etc.) to PDF documents. You als...
0
1966
posted 8 years ago by sherazam
Generate a random file with random contents but with a fixed size
0
1060
posted 8 years ago by rm1984
General file upload script in php. Error set using SESSIONS.
0
1238
posted 8 years ago by aravindnair93
Uses javascript to create a hidden iframe which downloads the file
0
2696
posted 10 years ago by jakob101
This technical tip shows how to load any existing email message and modify its contents before saving it back to disk using Aspose.Email for Android API. To do this successfully, specify the MessageFormat when loading the email message from disk. In...
0
1307
posted 10 years ago by johansonkatherine
This code sample shows how Ruby developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0
1663
posted 10 years ago by johansonkatherine
This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0
1636
posted 10 years ago by johansonkatherine
This code sample shows how C# developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0
2064
posted 10 years ago by johansonkatherine
PHP developers can learn how to merge multiple PDF files into a single PDF file using PHP REST API and SDK. To merge PDFs, you need to upload input PDFs to Aspose for Cloud Service or any supported third party storage and then send a PUT request to A...
0
1608
posted 10 years ago by johansonkatherine
C#
C#/.NET Code Samples to Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file
The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET
0
1842
posted 10 years ago by johansonkatherine
This file starts at the bottom of the tree and recursively moves all of the files from that tree into another folder. To avoid overwriting files I prepended all of the files with a 9digit number.
0
923
posted 10 years ago by jlmarks
This example shows you how to remove file extension from URLs using .htaccess file directives. Remember, that "mod_rewrite" works only on Apache server. Before trying please be sure that you are working on Apache server and the "mod_rewrite" module/e...
0
1015
posted 10 years ago by apphp-snippets
This technical tip shows how .NET developers can export Microsoft Visio diagram to XML inside their own applications using Aspose.Diagram for .NET. Aspose.Diagram for .NET lets you export diagrams to a variety of formats: image formats, HTML, SVG, SW...
0
1689
posted 10 years ago by johansonkatherine
simple php file uploader with check for file extension and size.
0
1011
posted 11 years ago by codingforever99
Problem
You want to recursively change all of the file permissions only on folders & subfolders in a directory, but not the files (or vice-versa: you want to change the permissions on files only, not folders).
0
911
posted 11 years ago by nkm
Launch DOS prompt to the SharePoint 2013 hive. To 'Run as Administrator' simply right-click on the batch file and select that option.
0
1162
posted 11 years ago by adove
Open Windows Explorer to the SharePoint 2013 hive using a batch file. Double-click the batch file.
0
1177
posted 11 years ago by adove
Place this snippent in your script, and call it like this:
urllib.urlretrieve(getFile, saveFile, reporthook=report)
Notice it is the 3rd argument that calls the function on each file that needs to be downloaded.
1
2016
posted 11 years ago by o0110o
This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)
0
1050
posted 11 years ago by rickygri
Uploading a binary file(like .doc) to Dropbox.
I tried with .ics and it worked.
0
938
posted 11 years ago by RobinD