1
vote
1answer
802 views

How can i automatically (silently) copy files off removable devices?

I'm looking for a way to automatically have my computer copy all files (or specific files based on extension) from removable devices plugged in (USB sticks/HDDs/phones etc) to a designated folder on ...
1
vote
1answer
708 views

removing special characters from entire directory structure

I would like to know whether it is possible to REMOVE special characters recursively in powershell from all files in an entire directory structure? for example if I have a file called: my ...
1
vote
2answers
2k views

How do I open a random file in a folder, and set that only files with the specified filename extension(s) should be opened?

How do I open a random file in a folder, and set that only files with the specified filename extension(s) should be opened? (While preferably, supporting Unicode filenames too.) I've already looked ...
0
votes
0answers
126 views

Windows xp/ Windows 7 copy command behavior

We have a folder to which a lot of people copy files. Instead of over writing the existing file on the folder, I would like to rename the original file first, and then copy the new file. Example: ...
2
votes
2answers
137 views

How to add extensions to a lot of files using content of each file?

I've got over 10,000 files that don't have extensions from older versions of the Mac OS. They're extremely nested in file structure, and they also have all sorts of strange formatting and characters. ...
0
votes
1answer
544 views

how to convert line-delimited txt file into a spreadsheet file as tsv or xls

I have a huge amount of phone numbers (for example), one for each line in .txt file. 202898990 909090090 909090900 ... I want to put each number in a a cell (phone numbers in the same column). I ...
1
vote
3answers
372 views

bash script to remove select files

I have a series of files that are named according to field.%d.vtk and are generated when I run a C++ code. The codes does a series of computation inside a for-loop and dumps the output whenever i%N == ...
2
votes
1answer
506 views

shell scripting: iterating through directories and moving/renaming files

(FYI, I have very little shell scripting knowledge) I have a ton of files and directories that look something like -root -dir1/a.txt -dir2/a.txt -dir3/b.txt -dir4/b.txt -dir5/c.txt I would ...
0
votes
0answers
21 views

Restore file dates by contents comparison

I have two folders A and B that contain files and other folders (no links though). B has a bit more up to date conent (extra files, modified files etc). However, B has wrong file modification dates ...
3
votes
1answer
2k views

How to set a default file extension for a specific download?

I'm using chrome web browser and when I download a file it saves the file with .jsp extension. Everytime I have to change the extension to my desired extension (i.e. .ica). Just setting the default ...
2
votes
1answer
2k views

How can I (on Mac/Unix/Linux/scripting) recursively copy a directory into another and replace only the files that have not changed?

Background and issue I moved to Mac OS X recently and bumped into the "feature" of Mac where copying files from an external drive resets the file modification/update date/timestamp to the current ...
0
votes
1answer
451 views

call ant script/java program once a file transfered in FTP

I have a folder on my windows 7 pc, that once a file was copied successful to my folder - I would like to invoke ant script/call java code that will accept the file name and location. How can I do ...
1
vote
2answers
76 views

Backup files real quick

I am going to re-install WinXP but I have about 4gb of EverQuest files I want to keep which would otherwise be destroyed. I don't have an external drive or an FTP server. What is the best way to ...
1
vote
2answers
4k views

Delete all files and folders EXCEPT those with extension .svn and .svn-base

I need to remove all files and folders from a particular parent folder except those which have .svn as the foldername and those which have *.svn-base as their filename. Is there a Windows script that ...
1
vote
2answers
185 views

How to sync specific files (not folders) on Windows 7

I need to copy frequently 2-3 files from my current program build to several other folders. How can I do this? Most free autosync solutions like SyncToy work only on folders, not files. Using .bat ...
3
votes
3answers
2k views

How can I insert a line in the middle of a file, with awk, given a search pattern to insert AFTER or BEFORE

I want to insert some text in the middle of a file. The text to insert would be after a specific line, say, "<begin>". I don't know the line number, nor do I know the number of lines in the text ...
1
vote
0answers
843 views

How can I open a random file in a folder? [closed]

Is there a program or .bat that will open a random file in the current folder?
3
votes
2answers
2k views

Windows Batch Scripting: Newest File Matching a Pattern

This would be lightning quick in linux, but I'm not familiar enough with windows flavour of batch scripting. Basically I want to look for a series of files matching a certain wildcard, and get the ...
3
votes
4answers
2k views

rm failing inside cron script

I have a cron job calling a bash script which runs fine, except for one line inside it that is suppose to remove all fines in a directory. The result of this line is always 'no such file or directory' ...
1
vote
2answers
94 views

Simple File Management Software

I need a simple file management software should be web based and I can upload any kind of files to it and the files will be stored in file system or virtual directory and people can view uploaded ...