Help!

Can't delete file on desktop - help 2

 
Goto page Previous  1, 2, 3
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Problem Solvers RSS
Next:  Will the left accept their responsibilty?  
Author Message
rovingcowboy



Joined: Jan 26, 2003
Posts: 1552



PostPosted: Sat May 03, 2008 8:53 am    Post subject: [Login to view extended thread Info.]


all thats true doc but when there is an easier route that might work that too is useful to know.

i have gotten lazy and i am begging to be a little forgetful so with all those good 3d prarty programs and scripts out there to fix things i've just about got out of hunting in the files for simple things. which takes lots of mind power, and gone for the simple to remember things.
i will of course use the old stuff and routes when needed, they are always handy to know.

and most the errors i have seen lately in other forums i'm in are very much like old win9x errors when the symptoms are said, so those old ways of doing it might still be needed. Cool
Back to top
drwho07



Joined: Nov 29, 2007
Posts: 2274

Location: Central FL, USA

PostPosted: Sat May 03, 2008 10:25 am    Post subject: [Login to view extended thread Info.]

Bucky,

There are DOS commands that will erase your HD so be careful.

You may want to start with simple commands that can do no harm.
"DIR" (without the quotes, of course) typed at a command prompt, for instance, will display a directory listing for whatever drive and folder you happen to be in at the time. Or you can follow the DIR command with a path statement to give you the listing for another directory anywhere in the computer. Example:
DIR C:\Windows\Drivers\etc /a /w /p

This would give you a directory of the folder in the path statement, showing all files and displaying them in a wide format, one page at a time.

If the listing scrolls off the screen, you can use the "DIR /P" to display just one page at a time, or "DIR /w" to display just the file names in a WIDE format. The /x is called a switch. Switches can be added in multiples to attain the desired effect. For instance:
"DIR /a /w /p" will present a directory, listing ALL files, in WIDE format, ONE PAGE at a time. This might be required when looking at, for instance, the C:\windows directory.

* It's mandatory that the command be followed by a space and that a space be placed between switches.

Bring up the "Command Prompt" in XP and give these examples a try.

Most DOS commands will have a set of switches that will alter the way the command works. At a dos prompt type the name of the command followed by a space (always) and /?
That will display a list of all the switches that the command recognizes.
Try that with the directory command, like this:
DIR /?

The display should read like this:

Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
[/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

[drive:][path][filename]
Specifies drive, directory, and/or files to list.

/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/B Uses bare format (no heading information or summary).
/C Display the thousand separator in file sizes. This is the
default. Use /-C to disable display of separator.
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date/time (oldest first)
G Group directories first - Prefix to reverse order
/P Pauses after each screenful of information.
/Q Display the owner of the file.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field displayed or used for sorting
timefield C Creation
A Last Access
W Last Written
/W Uses wide list format.
/X This displays the short names generated for non-8dot3 file
names. The format is that of /N with the short name inserted
before the long name. If no short name is present, blanks are
displayed in its place.
/4 Displays four-digit years

Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
*****************************

As you can see, the Directory command has many options. Having this kind of info printed out and placed in a reference folder is very helpful as hardly anyone can remember so many switches.
Many new switches have been added to some of the dos commands since I first learned it in the DOS 2.0 days.

There are also internal commands like DIR, COPY, TYPE and DEL, that are a part of Command.com, , , while other commands like FDISK, Format, XCOPY, Deltree, are all external commands and live as stand-alone programs in your command folder.
In Windows XP, that is the C:\windows\system32 folder.

((The command Deltree.exe was dropped from the command list in Windows XP, but, since it's an external command, it still runs if added to XP's command directory ))

I find it a most helpful and useful command, but it can also be the most devastating command ever put in DOS.
For instance:
Deltree /y C: can and will erase your entire C: drive, without ever saying a word about it or giving you any warning.
That's probably why M$, in their infinite wisdom, stopped including it with Windows. It was still available in Windows ME.

Well, enough for one day! Laughing
(By back's killing me and sitting here isn't helping any.) Wink
Maybe some more yard work will help. BYE NOW !

Y'all have a great weekend now, Y'hear?

The Doctor Cool


Last edited by drwho07 on Sat May 03, 2008 1:15 pm; edited 1 time in total
Back to top
Baby_Tux



Joined: Mar 06, 2007
Posts: 1244



PostPosted: Sat May 03, 2008 11:44 am    Post subject: [Login to view extended thread Info.]

Try typing HELP at the command prompt - this will list some there.

If you type help & the command it gives more info on that command.
Experiment & have fun...........

But a mentioned, be careful, some commands will "get you"
Like FORMAT, DEL & ERASE - the move & copy (xcopy, too) CAN if not properly used. (just follow the syntax when using)

Suggest you do this on a NON-CRITICAL box (an old one not being used?) & then you won't need to worry & you can see what the "nasties" do!!!! Twisted Evil --- load a copy of DOS 6.x just for kicks.
Back to top
bucky



Joined: Oct 15, 2003
Posts: 159

Location: Scranton, Pa.

PostPosted: Sat May 03, 2008 8:05 pm    Post subject: [Login to view extended thread Info.]

Hi guys...
This is getting very interesting Surprised Smile
I tried this and I couldn't find what I wanted. Embarassed
I am using WindowsXP Pro SP2
I went to the DOS command prompt.
The command prompt looked like this:
C:\Documents and Settings\AL>
I wanted to see the "Dir" of my C:\ drive but all that it showed was the "Dir" of my C:\Documents and Settings.
What did I do wrong Question Exclamation
BTW, if you guys don't have time for this, I understand. Cool
I'm just trying to learn a little something in case I need it. Laughing
Thanks, Bucky (AL)
Back to top
drwho07



Joined: Nov 29, 2007
Posts: 2274

Location: Central FL, USA

PostPosted: Sat May 03, 2008 8:51 pm    Post subject: [Login to view extended thread Info.]

Bucky,
It's unfortunate that the windows command prompt dumps you in such a place.
No problemo!

In your example you just asked it to show the directory.....you didn't specify what directory you wanted to see, so it showed you the directory it was currently in. Sorry, but DOS is NO mind reader....you must tell it EXACTLY what you want and in exactly the right syntax.

I taught DOS to a class room full of Sr. Citizens.....that was a real grin!
I had one little ol' lady that would type a dos command and then sit there staring at her screen waiting for something to happen. I had to remind her at least a dozen times to hit the ENTER key after typing the command or Nothing is going to happen. Laughing Laughing Laughing
For that class, I nicknamed the ENTER key as the "DO IT" key. Wink

just type cd \ to bring you to the root directory.
* Remember to hit ENTER after each command. I call that the "DO IT" key. Wink Laughing Laughing
* Always leave a single space after any dos command.....or the command interpreter won't know where to stop reading the command and start reading the following argument.


From there again use the cd (change directory) command followed by the folder that you want to see,,,, like:
cd \windows\system32
will take you to the C:\Windows\System32 directory.


Cheers mate! (Enough for one day)

The Doctor Cool
Back to top
bucky



Joined: Oct 15, 2003
Posts: 159

Location: Scranton, Pa.

PostPosted: Sun May 04, 2008 12:39 am    Post subject: [Login to view extended thread Info.]

Thank you Doctor, Very Happy
OK, I can now find the different directories (even my external HDD). Wink
I can find the files in the folders. Wink
Now, to find and delete a single file inside of a folder if I had to or from the desktop like the one that started all this. Rolling Eyes Laughing
You taught me more today about DOS than I ever knew, and I thank you very much. Very Happy Very Happy
Bucky
Back to top
drwho07



Joined: Nov 29, 2007
Posts: 2274

Location: Central FL, USA

PostPosted: Sun May 04, 2008 8:25 am    Post subject: [Login to view extended thread Info.]

Like Baby-Tux said;

You can see how extensive the DOS commands are by typing HELP at the dos prompt.
This gives you a listing of all the dos commands that are still active in XP, but does not tell you how to use each command.

Many commands are designed to be used in batch files and some are designed to be used manually at a command prompt.
And some can be used both ways.

This was never meant to be a DOS tutorial, but graciously the mods have allowed it to become one. Thanks Guys!

I'm currently helping several other guys with their DOS, thru emails or PM's. That often works better than answering questions in a forum.

I like to keep a directory listing of the files that I send to my website, but I don't want all the size and date info in the listing. (I want just the names and I want them alphabetized) SO,,,,,
I do a dir /b /on > C:\myweb.txt
that gives me a listing of just the filenames and puts them in alphabetical order.
Then the > C:\myweb.txt sends the readout to a text file in the root directory of C:.
Y'all give that a try!

With that listing safely on my HD, I can open it in Wordpad and print it out.
If I add a file, I can simply add that name to the text file (using wordpad) and I don't have to create a whole new listing.

Many of the little tricks that you can do with DOS, just make the computing experience easier, more interesting and more efficient.
In some way or another, I use DOS every day, even when I'm working in Vista.

I use a batch file, XPCleanup.bat, placed in my Startup folder, to delete all the temp files, Temporary Internet Files and about twenty other folders of just plain ol' JUNK.
Since this batch file runs silently (minimized) on every boot, the junk that bloats so many peoples HD's, just never has a chance to build up.

I regularly take over 100,000 junk files off of new customers HD's.
Then I install and run XPCleanup.bat and that cleanup job never has to be done again.
It's like a daily FREE Maid Service for your computer. Wink Laughing Laughing

So, even without operator intervention, a DOS batch file is assisting us every day, to maintain a clean and efficient computer.

DOS Rocks! Wink

The Doctor Cool
Back to top
bucky



Joined: Oct 15, 2003
Posts: 159

Location: Scranton, Pa.

PostPosted: Sun May 04, 2008 12:21 pm    Post subject: [Login to view extended thread Info.]

Hi Doctor,
I'm sorry, I didn't intend for this to become a tutorial either. Embarassed
You got me so interested in the subject, I just wanted to find out how to fix some minor problems on my own if I had to. Rolling Eyes
Thank you for helping me get rid of that file on my desktop and all the advice you gave me the last couple of days. Very Happy
I did find that help command in DOS and I'm sure I can find some info on the web about using the commands.
Have yourself a great day, and a better day tomorrow!
Bucky (AL)
Back to top
Baby_Tux



Joined: Mar 06, 2007
Posts: 1244



PostPosted: Sun May 04, 2008 12:55 pm    Post subject: [Login to view extended thread Info.]

Buchy

As an FYI - if you ever use FTP (file transfer protocol) on the internet or such to download files, knowing DOS makes it easier to navigate that as well even though some of the commands may be a bit different the idea is the same.

Bottom line, as you found out, you aren't wasting your time!!! Very Happy
I also believe you found it not all that hard to understand - that the difficulty now a days is getting the info. But it's there if you are willing to look for it.
Have fun!!!
Back to top
drwho07



Joined: Nov 29, 2007
Posts: 2274

Location: Central FL, USA

PostPosted: Sun May 04, 2008 2:38 pm    Post subject: [Login to view extended thread Info.]

A DOS manual would be helpful, but unfortunately there hasn't been one written since the DOS 6.22 days, before Windows 95.

I still have mine, although it's getting a bit ragged around the edges. Wink Laughing

A search for a DOS book, should include used book stores and second hand stores where people donate their unwanted Stuff.

If you were nearby, I'd loan you mine.

Good Luck,
The Doctor Cool
Back to top
AD



Joined: Dec 27, 2007
Posts: 53



PostPosted: Mon May 05, 2008 7:59 pm    Post subject: [Login to view extended thread Info.]

bucky wrote:
Very Happy Very Happy Very Happy Very Happy Very Happy
Thank you zlim!
Unlocker did the trick.
It didn't find what was locking it but it gives the option of just deleteing it,
which it did. Very Happy
I did try useing MoveOnBoot in safe mode, it didn't work.
Anyways... once again, you folks came through again...luv this site. Very Happy
Thank you very much, Bucky


Unlocker is a great app, I put it in all my machines. Only once has it ever failed to remove/unlock an offending file. And yeah it was in Vista! Wink
Back to top
drwho07



Joined: Nov 29, 2007
Posts: 2274

Location: Central FL, USA

PostPosted: Mon May 05, 2008 10:46 pm    Post subject: [Login to view extended thread Info.]

When you can access your HD from a DOS boot disk, you can do any dang'd thing you want, to any file you want, in any folder you want.......there are NO limits.

That's the kind of control over my files that I absolutely INSIST on.
That's why I keep all my drives in FAT-32 mode.

I never have to jump thru hoops or rely on some weird Linux boot CD to access my HD. It's always as close as my Windows ME boot disk.

I LOVE Simple....and it don't get no simpler than DOS. hee hee

I'm done here!

Doc
Back to top
AD



Joined: Dec 27, 2007
Posts: 53



PostPosted: Tue May 06, 2008 7:08 am    Post subject: [Login to view extended thread Info.]

Sure thing, and it was an interesting read here, I learned some things too. Idea

I have a great Utility called Ultimate Boot Disc, which has a lot of the kind of tests people used to run off boot floppies, all together on one CD. (handy if you don't have a Floppy Drive) Quite useful if you want to run tests outside of the OS without knowing any DOS commands. You'd probably remember using many of these little apps in the past.
Back to top
drwho07



Joined: Nov 29, 2007
Posts: 2274

Location: Central FL, USA

PostPosted: Tue May 06, 2008 8:43 am    Post subject: [Login to view extended thread Info.]

Yo comprende!

I found I can build my own "Ultimate Boot Disk" by putting everything I want on a bootable flash drive and then, using Nero, convert that into a CD.

If I want to add anything, edit something, or delete something, all I have to do is make the changes on the flash drive and RE-make the CD.
It's a very simple process, really. Wink

When you go with what someone else thought was "the greatest", you may wind up with things you'd never use in a million years, or come up missing something that you 'absolutely can't live without'. Confused

That's been my experience whenever I've tried to use someone else's "Ultimate Boot Disk".

I'm sure that I have things on my own Utilities boot CD, that other folks would have no idea how to use, or even want to.

I think it comes under the heading, "Different Strokes for Different Folks".

I'd guess that every person reading this forum would have their own idea of what should be included on their own "Ultimate Boot CD".

Y'all have a great day now, Y'hear?

The Doctor Cool
Back to top
Baby_Tux



Joined: Mar 06, 2007
Posts: 1244



PostPosted: Tue May 06, 2008 12:42 pm    Post subject: [Login to view extended thread Info.]

<<<SOAPBOX MODE ON>>> Very Happy


To each his own on LINUX - but I don't see it being any harder or "hoopier" (depending on distro - some I just load & go) just a bit DIFFERENT.

I think it to be more of what one has gotten used to & in that, what one expects. LINUX is not M$ & was never intended to be. Would be the same with OS X or any other.

I personally have had to learn at least 5 (or was that 6) different OS over the years & that isn't counting the different flavors of Windows. (clients & servers) One was IBM's OS/2, then on to warp. Now THAT one as weird. But there again I was used to something else & trying to make it the same.

<<<SOAPBOX MODE OFF>>> Very Happy
Back to top
Purry



Joined: Jan 19, 2009
Posts: 2



PostPosted: Mon Jan 19, 2009 12:45 am    Post subject: Unlocker did the trick [Login to view extended thread Info.]

Thanks, zlim, for the suggestions. I had an annoying file on my desktop for months. I couldn't delete, move, or do anything with it. (Something went wrong on the download from a valid source e-mail) I tried the MoveOnBoot first with no success. Then I tried the 'Unlocker' program you mentioned in your 4/29/08 post--it knocked that pesky file off pronto! Yea:) Thanks much!!!!!!!!!!!!!!!!!!!!
Back to top
rovingcowboy



Joined: Jan 26, 2003
Posts: 1552



PostPosted: Mon Jan 19, 2009 8:40 am    Post subject: [Login to view extended thread Info.]

i been lucky i don't get much of them stuck on screen files and when i do i found a good registry cleaning and defrag mostly gets rid of them from the desktop my self, i think there is a stuck hotkey someplace that makes them stay there, sometimes its harder to get rid of but most the time they are gone in few days.

i found it helps to never install from the desktop. always download files to a folder you make for your downloads, and install from going in there.
why? just sometimes a unwanted trojan or virus comes in with the download and if you send that download to your desktop then it has access to all your shortcuts.

if you put it in a folder it can't get out until you open the folder, and when you open the folder your antivirus program will catch the pesky critter before it can get out in to your system.

i've had lots of virus and trojans try and get in when i download things but they always get caught in that folder.

also your desktop was not made to be a storage folder so putting installs on it and installing from there, can over load the desktop folder with files and things that sould not be on it. only shortcuts should be on the desktop.

and i even cut those down. if i could there would be only 4 on my desktop but my sister likes to have them handy and she dont like going in to a folder to get them. me i like the folder so i put all my desktop shortcuts in a folder and put a shortcut to that folder on the desktop
so all 200 shortcuts are in a folder and i can see my desktop image again.

same idea as the start button menu only i get bigger icons to look at in the folder. Cool
Back to top
Purry



Joined: Jan 19, 2009
Posts: 2



PostPosted: Mon Jan 19, 2009 6:42 pm    Post subject: Thanks for feedback [Login to view extended thread Info.]

Thanks for your comments, 'rovingcowboy'. I'm with you on keeping your desktop clear. Normally I have only 4 shortcuts, and 1 "Everything" folder. That pesky file I couldn't delete just annoyed me. So glad it's gone now.

Yes, I see it's a good idea to not download directly to desktop.

Thanks again for your feedback.
Back to top
AD



Joined: Dec 27, 2007
Posts: 53



PostPosted: Mon Jan 19, 2009 8:21 pm    Post subject: [Login to view extended thread Info.]

rovingcowboy wrote:
i found it helps to never install from the desktop. always download files to a folder you make for your downloads, and install from going in there.
why? just sometimes a unwanted trojan or virus comes in with the download and if you send that download to your desktop then it has access to all your shortcuts.

if you put it in a folder it can't get out until you open the folder, and when you open the folder your antivirus program will catch the pesky critter before it can get out in to your system.

also your desktop was not made to be a storage folder so putting installs on it and installing from there, can over load the desktop folder with files and things that sould not be on it. only shortcuts should be on the desktop.
Cool


I do all my Downloads to a separate drive altogether. only thing on my C drive is Windows and Applications/Games. Makes Drive Imaging for backups much smaller. Faster AV scan time too on 2 less filled drives.

Pics, Videos, Docs, Music, Downloads...all those Windows Vista Default folders I actually use I moved to my 500 GB 'E' drive, makes housekeeping easier. If you have the room why not?
Back to top
Birk



Joined: May 24, 2009
Posts: 1



PostPosted: Sun May 24, 2009 8:30 am    Post subject: [Login to view extended thread Info.]

Thanks zlim

Amazing little program that unlocker Smile
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Problem Solvers All times are: Eastern Time (US & Canada)
Goto page Previous  1, 2, 3
Page 2 of 3

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum