Hot answers tagged file
4
They ought not to; files are on/off patterns, and all operations such as move and copy are designed to move data whole, without losing any. It's not like the human game of "telephone" where copying the file over and over makes it more mumbled and confused every time until all that's left is nonsense.
But, every time you do something, there's a tiny chance ...
3
Check the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
On a 64-bit system there is a second copy of this key for 32-bit applications:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
This key can be used to launch a debugger ...
3
The following moves all HTML files out of foo, and removes empty directories:
$ find foo -name '*.html' -type f -exec mv -nv "{}" '.' \;
foo/bar/1.html -> ./1.html
./1.html not overwritten
foo/baz/qux/3.html -> ./3.html
foo/baz/qux/5.html -> ./5.html
$ find foo -depth -type d -delete
What's left is HTML files with conflicting file names, files ...
2
If these files are all in the same directory you can rename them like this:
for f in /some/dir/*.JPG.jpg; do
mv "$f" "${f%.*}"
done
${f%.*} removes shortest text matching the pattern .* (a dot followed by arbitrary text) from the end of the variable $f (in this case the file name), thus producing commands like the following:
mv ...
2
Apache is a HTTP server. It means it's for websites, not file streaming. It just won't work.
The easiest solution for your problem is probably Dropbox. Just create an account and send your friend a referrer link, after he registers using that link you'll both get 500 MB extra space (that's 2,5 GB for free). Then you both install the Dropbox app. One of you ...
2
This is driven by the alternate data streams. Windows flags files as potentially untrusted if they have been downloaded (for example) from the internet zone and will disable execution.
As a side note, Sysinternals provide a free tool called 'streams' (via Microsoft) which allows you to remove (including recursively) all alternate streams from a file / ...
2
The following moves every file from a pdf folder into the parent directory.
find ~/some/folder -type d -name 'pdf' -print0 | while IFS= read -d '' dir
do
find "$dir" -type f -maxdepth 1 -exec echo mv -- {} "$dir"/.. \;
done
Remove the echo once you're sure it does what you need.
Note that this will overwrite files without asking when the parent already ...
2
You can try MediaInfo
It is a freeware and puts a right-click context menu item so that you can quickly get info about most of the media files.
Also as an addition, try Free Studio: http://www.dvdvideosoft.com/free-dvd-video-software.htm
It has a host of media conversion tools including dedicated tools for flash(flv) videos. If I remember correctly, ...
1
The file name may not begin or end with a space, end with a period, or include any of these characters: / \ < > : * " ? |
These names aren't allowed for files or folders: AUX, PRN, NUL, CON, COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
Source: SkyDrive FAQ
Besides that the ...
1
Here is what I thought of. Its not the prettiest thing, but it works to your specifications:
find . -ipath "*pdf/*.pdf" -type f -print0 | xargs -0 -I{} sh -c 'mv "{}" "$(dirname "{}")"/..'
It moves only .pdf files in pdf subfolders into their corresponding parent directories. To change the command to move all files in pdf subfolders, adjust the ipath ...
1
You should be able to do something like:
wget http://the.source.of.it.all $(< /the/list/of/files/here)
or even run the whole by a script that iterates over the files reading a line from the list and asking for it.
How much do you know of shell programming? How well do you know the command line Unix utilities? Are you familiar with a scripting ...
1
No it is not necessary, yes media files need only exist in one place and they can be accessed by all programs. You can safely delete all duplicates and just keep one copy.
That said, are you sure you actually have multiple copies? What do you mean by "duplicated in all related program files", are you sure you can see them in different locations on the ...
1
I think Larry is saying that when he installs applications, some offer the "search for content" option, and then decide to copy the files it finds into its own program folder. I can't remember which apps do this, but I've had it happen to me before.
My suggestion is that you do one of the following two things:
Look in the applications' Preferences menu ...
1
Add a system environmental variable SEE_MASK_NOZONECHECKS and set the value to 1.
Make sure it's a system level variable or it will go away on reboot.
Use of Environment Variable in Windows 8
Only top voted, non community-wiki answers of a minimum length are eligible