Reply
Thread Tools
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#1
hello. i'm using the n900. i downloaded a file into MyDocs/Downloads and after unziping it i found desktop.ini files in some of the folders. when i came to delete the folders and the contents, i was told that i couldn't delete because they are read only. if anyone knows how to delete these, could you please give me a step by step guide please because i've only had the phone for a week. thanks.
 
Posts: 16 | Thanked: 2 times | Joined on Jan 2010
#2
Connect the N900 to your desktop machine in mass storage mode and then try to delete the folders. I don't know your OS, but you probably have to go into the folder properties at first and disable "read only".
This might be the easiest way without using xterm.
 

The Following User Says Thank You to matze For This Useful Post:
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#3
Originally Posted by matze View Post
Connect the N900 to your desktop machine in mass storage mode and then try to delete the folders. I don't know your OS, but you probably have to go into the folder properties at first and disable "read only".
This might be the easiest way without using xterm.

hi matze, thanks for the quick response. i havn't got a pc. if you could give me a run through on how to do it in xterm, that'd be great.
thanks
 
Posts: 189 | Thanked: 47 times | Joined on Nov 2009
#4
As with running any terminal commands you should fully understand what you are doing before preceding.

open xterm and type:
Code:
cd MyDocs/Downloads/NameOfExtractedFolder
for i in `find . | grep desktop.ini`; do rm -i "$i"; done
The first line will change directories into the extracted folder directory.
The second line will search all subdirectories for desktop.ini and then ask you if you want to delete it.

That should work. If you have any issues report back.
 

The Following User Says Thank You to lfcobra For This Useful Post:
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#5
Originally Posted by lfcobra View Post
As with running any terminal commands you should fully understand what you are doing before preceding.

open xterm and type:
Code:
cd MyDocs/Downloads/NameOfExtractedFolder
for i in `find . | grep desktop.ini`; do rm -i "$i"; done
The first line will change directories into the extracted folder directory.
The second line will search all subdirectories for desktop.ini and then ask you if you want to delete it.

That should work. If you have any issues report back.

$ ~ $ cd MyDocs/Downloads/Folder/Q/Mazda [Mx5]
-sh: /home/user: Permission denied
~ $

Last edited by rokafellaskank; 2010-03-16 at 03:29.
 
Posts: 189 | Thanked: 47 times | Joined on Nov 2009
#6
Originally Posted by rokafellaskank View Post
~ $ cd MyDocs/Downloads/Folder/Q/Mazda (Mx5)
-sh: syntax error: "(" unexpected

it wont read the bracket, and it wont let me rename the folder in file manager.
type:
cd MyDocs/Downloads/Folder/Q/Maz
and then press the Tab button on the touch screen to autocomplete the folder name, and then press enter to actually execute the command.

edit:
actually you could just type
cd MyDocs/Downloads/Folder

The code in my previous post will look in ALL subdirectories of "Folder" so its really not necessary to go any deeper.

Last edited by lfcobra; 2010-03-16 at 03:33.
 

The Following User Says Thank You to lfcobra For This Useful Post:
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#7
~ $ cd MyDocs/Downloads/Folder/Q
~/MyDocs/Downloads/Folder/Q $ for i in `find . | grep desktop.ini`; do rm -i "$i"; done
~/MyDocs/Downloads/Folder/Q $


nothing happened

i had to type all the folder names because if i didn't it just didn't find the folder.

Last edited by rokafellaskank; 2010-03-16 at 08:39.
 
Posts: 44 | Thanked: 38 times | Joined on Mar 2010 @ Germany
#8
~ $ cd MyDocs/Downloads/Folder/
~ $ find . -name desktop.ini -exec rm -i {} \;

HTH
 

The Following User Says Thank You to BigLebowski For This Useful Post:
rokafellaskank's Avatar
Posts: 83 | Thanked: 4 times | Joined on Mar 2010 @ Birmingham England
#9
Originally Posted by BigLebowski View Post
~ $ cd MyDocs/Downloads/Folder/
~ $ find . -name desktop.ini -exec rm -i {} \;

HTH



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ cd MyDocs/Downloads/Folder/Q
~/MyDocs/Downloads/Folder/Q $ find . -name desktop.ini -exec rm -i {} \;
find: unrecognized: -exec
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) multi-call binary

Usage: find [PATH...] [EXPRESSION]

~/MyDocs/Downloads/Folder/Q $


still nothing
 
Posts: 44 | Thanked: 38 times | Joined on Mar 2010 @ Germany
#10
BusyBox

Last edited by BigLebowski; 2010-03-16 at 10:33.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:08.