|
I have hundreds of text files in a folder named using this kind of naming convention:
Bandname1 - song1.txt Bandname1 - song2.txt Bandname2 - song1.txt Bandname2 - song2.txt Bandname2 - song3.txt Bandname3 - song1.txt ..etc.
I would like to create folders...
Started by jrara on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
That you can customize to organize your music however you want:
This rule says, "assume my file names point is that os.path.walk will traverse the data directory structure and call myVisitor for each file): for file in names: bandDir....
|
|
Exact Duplicates: How to write a batch file to delete the files which are 5 days or older from a folder? write a batch file to delete 6 days older files from a folder write a batch file to delete 5 daya older files from a folder How do I create a batch...
Answer Snippets (Read the full thread at stackoverflow):
You can use FOR to split the date into elements and then use SET /A to do the subtraction, but then you're going to need a huge number of IF... .
Batch can be surprisingly powerful but I don't think the kind of date manipulation you want will be practical .
|
|
I have designed an online editor with which a user can create files and folders on the server. Suppose a user creates the below files and folders.
/docs/abc.txt
/docs/def.txt
/docs/work/assignment.txt
I want to write a PHP script to combine the files ...
Started by Madhu on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi,
This is a common requirement and has been solved.
Can add directories and file to an archive.
|
Ask your Facebook Friends
|
I have a folder structure like so:
file1 file2 file3 file4 folder1 folder2
Without writing each file, how can I tar zip all the files and folders, except file1 and folder1?
Started by RD on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
You can use --exclude=pattern option which prevents any file.
Tar has an --exclude switch.
|
|
Hi all,
I'm trying to delete a folder and all files and folders within that folder, I'm using the code below and I get the eror "Folder is not empty", any suggestions on what I can do?
Thanks
try { var dir = new DirectoryInfo(@FolderPath); dir.Attributes...
Started by Jamie on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
See MSDN DirectoryInfo.Delete.
You should use:
dir.Delete(true);
for recursively deleting the contents of that folder too.
And folders underneath "path" assuming you have the permissions to do so.
|
|
We have a client server software that needs to be updated. I need to check if the file is currently being accessed. Is this possible if so how Delphi code if possible. The only place I can see if the file is open is under the shared folders open files...
Started by Jason on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I found this similar item , someone.
Of the file is up to date, I then run this locally cached copy.
|
|
I have the following folder structure:
FolderA
--Folder1
--Folder2
--Folder3
...
--Folder99
Folders 1 through 99 have files in them.
All I want to do is to copy ALL THE FILES into ONE FOLDER, basically do a FolderA copy, and wipe out Folders 1-99 keeping...
Started by roman m on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For /r will walk a directory tree recursively, looking for file names.
Copy "%f" target
Within the loop it's just a simply copy of the file into a specified folder" your directory hierarchy.
|
|
I am looking for a tool to tell me which files and folders are the largest as I need to do some cleanup.
Started by oo on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at superuser):
WinDirStat is great for finding....
It's an awesome app that shows you the sizes of all the files/folders on your machine.
I like it over WinDirStat.
Of WinDirStat it shows the space taken up by a folder or file's contents.!.
|
|
Hi, is there a way to remove the test folders and files that i have committed in the google code branch ?
Started by sasori on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Use
svn delete your_file
to delete the file, and, then, use
svn commit
to push the deletion to completly remove a file from the repository's history, it's a lot harder, and will require you FAQ, about that : How do I completely remove....
|
|
What is the most secure way to password protect admin files/folders?
im on apache/php
Started by YuriKolovsky on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://www.htpasswdgenerator.com/apache/htaccess.html#8
Create a .htaccess and .htpasswd....
Simple and requires no programming effort from you.
The most secure way is to keep it off the internet alltogether ;-)
But irony aside, I'd suggest using .htaccess .
|