Badges

Types

Formats

Show Only

DeleteOldFiles.vbs
https://mreschke.com/211/deleteoldfilesvbs
This script will recursively delete all files in every subfolder older than X days. Will not delete any folders, just files. I create a batch file and call the vbs script for any directory I need purged. rem Use this script to clean up any old files automatically. rem This .bat will be called weekly from a scheduled task, and will rem call the d:\production\batch\generic\DeleteOldFiles.vbs with directory/day parameters rem the commands will not run simultaneously (unless they begin with start)...
|
post #211 by mreschke Nov 10th 2010 (4899 views)
Copy Remote FS with DD
https://mreschke.com/187/copy-remote-fs-with-dd
How to copy a partition using dd, to a remove partition with netcat. Awesome! http:alma.ch/blogs/bahut/2005/02/wonders-of-dd-and-netcat-cloning-os.html I found this here http:www.linuxquestions.org/questions/linux-software-2/using-dd-copy-image-file-remote-system-800595/
|
post #187 by mreschke Apr 7th 2010 (3366 views)
Recursive File Search or List in .NET
https://mreschke.com/153/recursive-file-search-or-list-in-net
I am sure you all have your functions for a recursive directory/file listing, or file searching by wildcard function for .net, but here is another one, works great. I use it to get a list of all *.aspx pages in a project like this. Dim baseDirectory As System.IO.DirectoryInfo = New System.IO.DirectoryInfo(“c:\projects\SSO\”) Dim x As New DSF.SSO.Other.FileSearch(baseDirectory, "*.aspx") Dim pageName As String = "" x.Search(, "*.aspx") lblMessage.Text = "" For Each f As System.IO.FileInfo In...
|
post #153 by mreschke Sep 10th 2009 (2894 views)
Linux Bootdisk
https://mreschke.com/130/linux-bootdisk
Would really like to learn more about embedded linux. Found an incredible website about Bootdisks and the boot process at http:www.tldp.org/HOWTO/Bootdisk-HOWTO which will be a good start. Later I will tackle Linux from Stratch at http:www.linuxfromscratch.org/lfs/view/stable/chapter01/how.html Also found some nice articles on a Tiny Busybox system written by the creator of BusyBox himself! Part 1 http:www.linuxjournal.com/article/4335 Part 2 http:www.linuxjournal.com/article/4395 BIOS calles s...
|
post #130 by mreschke Feb 10th 2009 (4743 views)
BSD Help
https://mreschke.com/122/bsd-help
FYI, new install of FreeBSD 9.0-BETA3 with docs, src, ports,, (basic standard full install) ended up using 2.5g HD space. The new installer defaults entire drive to / slice, in fact the entire installer is quite different that previous versions, much easier it seems. portsnap fetch portsnap extract portsnap upgrade (after that just 'portsnap fetch update' to get latest ports) whereis portupgrade cd /usr/ports make quicksearch name=portupgrade cd /usr/ports/ports-mgmt/portupgrade; mak...
|
post #122 by mreschke Dec 31st 2008 (4767 views)
Multiboot with Grub
https://mreschke.com/121/multiboot-with-grub
Always leave the 3 primary partitions as large ones, to use for OS's that must be installed on primary Remeber, max 15 partitions (or is it 14, sda14?) If you have multiple drives, use only 1 swap to save partition numbers Pick 1 super small fast distro as your main distro which uses /boot. (or not? just grib-install to boot part?) Very Important (see Differences in partition formatting below) Format all drives and partition with the same OS, newer e2fs formatters are incompatible, grub won't b...
|
post #121 by mreschke Dec 22nd 2008 (4936 views)
Remote Filesystem with SSHFS
https://mreschke.com/105/remote-filesystem-with-sshfs
Used for mounting a folder over SSH (Secure Shell File System). So I can map drives from a remote linux server. From http:www.linuxinsight.com/sshfs_secure_and_transparent_access_to_remote_filesystems.html apt-get install sshfs or yum install fuse-sshfs Finally, as sshfs is designed to be used by regular users (not under superuser privileges) you should add yourself (and possibly others) to the fuse system group. Something like this should do: usermod -a -G fuse You must logout and login again...
|
post #105 by mreschke Sep 14th 2008 (5219 views)
Partition Management in Linux
https://mreschke.com/101/partition-management-in-linux
Hard drive partition management in Linux Partition Drives Format Drives I don't have to tell you to be careful, everyone deletes a hard drive at some point, no doubt you have too. Make sure you get the right drive letter (sda or sdb or sdc...). I will substitute with x (sdx) This example will create a swap, a root partition for a linux install, and a large home partition. I am using a new seagate 750g SATAII HD. fdisk -l Note: this does not format the drive, just partitions it. fdisk /dev/sdx m...
|
post #101 by mreschke Aug 28th 2008 (5332 views)
.NET Directory to DataGrid
https://mreschke.com/74/net-directory-to-datagrid
Add a directory of files to a datagrid For greater control, you can , then bind the dataset to the datagrid.
|
post #74 by mreschke Jun 5th 2008 (3293 views)
.NET Directory to Dataset
https://mreschke.com/71/net-directory-to-dataset
This article adds the files in a directory (with wildcards) into a datatable, then to a dataset. With slight modifications to this function you can return the file list as a dataset, datatable or string array. See Private Sub TabArchivesEvents() Dim archivePath As String Dim dirInfo As DirectoryInfo archivePath = System.Configuration.ConfigurationSettings.AppSettings("ExecutiveAnalysisArchivesFolder") & Me.DLR_ID & "\" If Directory.Exists(archivePath) Then dirInfo = New DirectoryInfo(archivePath...
|
post #71 by mreschke May 22nd 2008 (5438 views)
Linux NFS Remote Filesystem
https://mreschke.com/67/linux-nfs-remote-filesystem
Overview of the nfs server options I choose See man exportfs and http:www.troubleshooters.com/linux/nfs.htm for NFS server option details. Also CentOS docs are great for NFS client/serve details http:www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-nfs.html secure server must be started by root because it will use ports lower than 1024 rw enable read and write sync data must be fully synced to disk, this prevents corruption if a server crashes no_wdelay I use this because my nfs re...
|
post #67 by mreschke May 20th 2008 (4682 views)
VBScript File List
https://mreschke.com/56/vbscript-file-list
<p>This script accepts a path (ex: c:\temp\*.* or c:\*.txt) and builds a 1 dimensional array of the files that match the directory/wildcard.</p>
|
post #56 by mreschke May 6th 2008 (2955 views)
Bootable KNOPPIX USB Drive
https://mreschke.com/19/bootable-knoppix-usb-drive
<p>Knoppix 5.0.1 boots rather nicely from a USB key. It's getting easier to get it working, as the USB bugs from the previous versions have been fixed. This is a "recipe" for creating a Knoppix bootable USB key. It was originally posted to the forums: <a class="urlLink" href="http://knoppix.net/forum/viewtopic.php?t=25402" onclick="window.open(this.href, '_blank'); return false;">http://knoppix.net/forum/viewtopic.php?t=25402</a></p>
|
post #19 by mreschke Jan 15th 2008 (5114 views)
Showing 1 to 13 of 13 results