| Computing desk | ||
|---|---|---|
| < April 22 | << Mar | April | May >> | April 24 > |
| Welcome to the Wikipedia Computing Reference Desk Archives |
|---|
| The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
rm thumbs.db -r, it simply responds with m: cannot remove `thumbs.db': No such file or directory. Magog the Ogre (talk) 05:52, 23 April 2011 (UTC)sudo find / \( -iname 'desktop.ini' -o -iname 'thumbs.db' \) -delete
Great! It worked beautifully. Now maybe you can help me with another problem I've had after unloading some archives: a folder within a folder. A lot of my directories are duplicated, so for example, I have /media/backup/pics/pics/IMG01.jpg or /media/backup/pics/Mypics/IMG01.jpg (you can see the first pics folder is unnecessary). Is there a way to move all the files to the parent directory and delete the subfolder when the only contents of the parent directory to begin with were just one folder (i.e., /media/backup/pics only content is the pics or Mypics directory). Magog the Ogre (talk) 18:47, 23 April 2011 (UTC)
import os
for r,d,f in os.walk("."):
if not f and len(d)==1:
e=os.path.join(os.path.dirname(r),"_empty")
os.rename(r,e)
os.rename(os.path.join(e,d[0]),r) # turn .../a/b/ into .../a/
os.rmdir(e)
del d[0] # don't recurse
Thank you; is there a way to maintain the name of the subdirectory? I don't know any python. Magog the Ogre (talk) 19:15, 24 April 2011 (UTC)
import os
for r,d,f in os.walk("."):
if not f and len(d)==1:
u=os.path.dirname(r)
e=os.path.join(u,"_empty")
os.rename(r,e)
os.rename(os.path.join(e,d[0]),os.path.join(u,d[0])) # turn .../a/b/ into .../b/
os.rmdir(e)
del d[0] # don't recurse
I'm using Abiword (version 2.8.6) which by default saves documents as .abw. I'm beginning to worry that in future years, when I use some other wordprocessor with some other operating system, then I won't be able to open these old documents. Abiword can also save documents as .doc .rtf .latex .odt .sxw .docx among others.
What would be the best bet, apart from .txt, for long-term storage? Something that could be read in different operating systems by different wordprocessors. Thanks 92.24.182.118 (talk) 17:21, 23 April 2011 (UTC)
Thanks. Reading the Abiword article more closely, it suggests .abw is XML. Do other editors exist to read XML? Thanks. 92.29.117.87 (talk) 20:45, 23 April 2011 (UTC)
None are going anywhere anytime soon, and if you use a plain text format, it will always be quite easy to make a converter even if all software on the planet disappears in a freak accident. I'd go with
, still, though. :p ¦ Reisio (talk) 19:25, 24 April 2011 (UTC)
I installed Thunderbird only so that I could archive my thousands of Hotmail emails to my HD. But Thunderbird appears to save the archived emails to some file which only it can read. Is there any way of saving the emails in a more accessable way please? As it happens, I will need to show some old emails in court as evidence; I would prefer something that could print them as near to how they look in Hotmail as possible. As there are thousands of them, I could not do anything on an email by email basis. Thanks 92.24.182.118 (talk) 17:32, 23 April 2011 (UTC)
Vista. Prints fine in Openoffice. Word boots me out when I CTRL P. Kittybrewster ☎ 18:12, 23 April 2011 (UTC)
I have a series of ASCII PPM files (24 bit color) which I would like to change into an animated GIF. How can I best (and most cheaply) accomplish this goal ? (No "tweening" is needed.) Right now I only have Gimp and MS Paint. I'm on Windows XP SP3. StuRat (talk) 22:01, 23 April 2011 (UTC)