Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    need help to delete 'desktop.ini' files

    Reply
    Page 1 of 2 | 1   2   | Next
    rokafellaskank | # 1 | 2010-03-16, 01:09 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    matze | # 2 | 2010-03-16, 01:21 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to matze For This Useful Post:
    rokafellaskank

     
    rokafellaskank | # 3 | 2010-03-16, 01:47 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lfcobra | # 4 | 2010-03-16, 02:22 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to lfcobra For This Useful Post:
    rokafellaskank

     
    rokafellaskank | # 5 | 2010-03-16, 03:16 | Report

    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
    ~ $

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by rokafellaskank; 2010-03-16 at 03:29.

     
    lfcobra | # 6 | 2010-03-16, 03:28 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by lfcobra; 2010-03-16 at 03:33.
    The Following User Says Thank You to lfcobra For This Useful Post:
    rokafellaskank

     
    rokafellaskank | # 7 | 2010-03-16, 08:30 | Report

    ~ $ 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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by rokafellaskank; 2010-03-16 at 08:39.

     
    BigLebowski | # 8 | 2010-03-16, 08:45 | Report

    ~ $ cd MyDocs/Downloads/Folder/
    ~ $ find . -name desktop.ini -exec rm -i {} \;

    HTH

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to BigLebowski For This Useful Post:
    rokafellaskank

     
    rokafellaskank | # 9 | 2010-03-16, 09:23 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    BigLebowski | # 10 | 2010-03-16, 10:19 | Report

    BusyBox

    Edit | Forward | Quote | Quick Reply | Thanks

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

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout