Re: Deleting shortcuts when they are for a C: program

From: David Candy (.)
Date: 11/24/04


Date: Wed, 24 Nov 2004 18:24:50 +1100

Something is wrong there.

If the file exists you get the permissions.

If the file doesn't exist it says it can't find.

It displays what you saw if you type something it can't understand, but your typing seems fine. If you screwed up the name it would say File Not Found. And we only have a name as a parameter so it should say Not Found or the permissions.

Try agian this way.

Start cmd, type
cacls
then a space. From Explorer drag the file into the cmd window (it will type the name correctly for you). Press Enter.

-- 
----------------------------------------------------------
http://www.uscricket.com
"antispam" <antispam@discussions.microsoft.com> wrote in message news:7549D574-9757-407D-9CA4-6875F05FAFFE@microsoft.com...
> OK David, I typed in the msinfo32... PAC.EXE was not in the list under Loaded 
> Modules
> 
> I then typed this; cacls "C:\Documents and Settings\TEST\desktop\pac.exe"
> 
> Response:
> 
> Displays or modifies access control lists (ACLs) of files
> CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]]
>                        [/P user:perm [...]] [/D user [...]]
>     filename         Displays ACLs.
>     /T                  Changes ACLs of specified files in the current dir 
> and all sub dirs.
>     /E                  Edit ACl instead of replacing it.
>     /C                  Continue on access denied errors.
>     /G user:perm  Grant specified user access rights.
>                          Perm can be: R Read
>                                              W Write
>                                              C Change (write)
>                                              F Full control
> /R user                Revoke specified user access rights (only valid with 
> /E)
> /P user:perm        Replace specified user access rights.
>                           Perm can be: N None
>                                               R Read
>                                               W Write
>                                               C Change (write)
>                                               F Full control
> /D                        deny specified user access.
> wildcards can be used to specifi more than one file in a command.
> You can specify more than one user in a command.
> 
> Abbreviations:
>     CI - Container Inherit.
>     OI - Object inherit
>     IO -  Inherit only
> 
> Obvioulsy I have NO idea what all this is or means. :(((
> 
> P.S.  DARREL S.  I did try your suggestion also.  However, I still got the.. 
> cannot delete as file is being used by another person or program, blah blah
> 
> Anti 
> 
> 
> 
> "David  Candy" wrote:
> 
>> Yes it means nothing has it open (although this doesn't find running programs holding themselves (or really XP) open).
>> 
>> Therefore we'll retest the hypothsis of it running.
>> 
>> Type msinfo32 in Start Run, go to the Software Environment - Loaded Modules
>> If it ain't in this list it's aint running (sort the list to make it easy to confirm it is/isn't there)
>> 
>> To test security (and the GUI procedure is different for home/pro so we'll use the command line)
>> Type 
>> cacls "%userprofile%\desktop\pac.exe"
>> 
>> Assuming TEST user is you. If not spell out the %userprofile% (eg for me it's C:\Documents and Settings\David Candy)
>> cacls "C:\Documents and Settings\TEST\desktop\pac.exe"
>> 
>> -- 
>> ----------------------------------------------------------
>> http://www.uscricket.com
>> "antispam" <antispam@discussions.microsoft.com> wrote in message news:ED330960-31DA-4C6A-AB69-8F384892FB06@microsoft.com...
>> > Ok, I did this again this morning;
>> > 
>> > typed:       oh +otl
>> > response: Enabled 'object type list' flag needed by the OH utility. Will 
>> > take effect next time you boot
>> > 
>> > rebooted
>> > 
>> > typed: oh /t file pac.exe
>> > response: //
>> >               // TIME: 2004-11-23 08:07
>> >               // MACHINE: Owner-FFZ077CHR
>> >               // BUILD: 2600
>> >               // OH version:  built by: dnsrv_dev(v-smgum)
>> >               //
>> >               //
>> > 
>> > That is all I got.  Nothing other than that. Does this mean there is NO 
>> > program that has pac.exe open.  Also, the other user ID was also me, I 
>> > deleted the other one but the current ID I am using has all administrator 
>> > functions assigned to it. 
>> > 
>> > 
>> > 
>> > 
>> > "David  Candy" wrote:
>> > 
>> >> And what did typing oh say. I'm going out now so don't expect a quick reply.
>> >> 
>> >> Deleting a user doesn't free up their files. Just makes it so noone has access. If it is a permission thing type in help and read carefully (repeat read carefully) taking ownership.
>> >> 
>> >> -- 
>> >> ----------------------------------------------------------
>> >> http://www.uscricket.com
>> >> "antispam" <antispam@discussions.microsoft.com> wrote in message news:CE064DF9-FAA9-47E9-9522-6740821C9187@microsoft.com...
>> >> > Pac.exe  is the executable for a game titled Pacific War.  It is a DOS based 
>> >> > game  that I have had for played since 1992.  I have been playing it on THIS 
>> >> > computer for 2 years.  The game worked fine using the compatability settings. 
>> >> > I am ready to delete it now and I just cannot get the pac.exe off of my 
>> >> > desktop.  I thought perhaps it was somehow linked to a diff user name on my 
>> >> > system so I deleted the only other user name for this system, still cannot 
>> >> > delete this file.
>> >> > 
>> >> > I am almost at the point of giving up. Obviously this is getting technical 
>> >> > and thats NOT were I can follow.  
>> >> > 
>> >> > Anti
>> >> > 
>> >> > "David  Candy" wrote:
>> >> > 
>> >> >> It's common here to use <something> to indicate you fill it in with your specific request. In this case the exe file that is open.
>> >> >> 
>> >> >> What is pac.exe and where did it come from?
>> >> >> 
>> >> >> -- 
>> >> >> ----------------------------------------------------------
>> >> >> http://www.uscricket.com
>> >> >> "antispam" <antispam@discussions.microsoft.com> wrote in message news:FDF07A31-740A-4208-B1D9-CC23B443C7A4@microsoft.com...
>> >> >> > ok, I did as you suggested... but, after I typed "oh /t file <filename> which 
>> >> >> > looked like this by the way: oh /t pac.exe  I got this;
>> >> >> > //
>> >> >> > // TIME: 2004-11-22 21:29
>> >> >> > // MACHINE: Owner-FFZ088CGR
>> >> >> > // BUILD: 2600
>> >> >> > // OH version:  built by: dnsrv_dev(v-smgum)
>> >> >> > //
>> >> >> > 
>> >> >> > I am not sure what you mean by EG???
>> >> >> > 
>> >> >> > at any rate I then tried: oh /t pac.exe and got this message;
>> >> >> > 
>> >> >> > //exception C0000005 raised within OH process. Aborting ...
>> >> >> > 
>> >> >> > So, I guess I need to know in idiot terms what you mean by this;
>> >> >> > 
>> >> >> > "EG to see what program has inbox.dbx open (OE's inbox file)"
>> >> >> > 
>> >> >> > Anti..
>> >> >> > 
>> >> >> > 
>> >> >> > "David  Candy" wrote:
>> >> >> > 
>> >> >> >> That tells us another program has the file open. If the file had itself open you can rename it.
>> >> >> >> 
>> >> >> >> Use oh.exe from the windows 2003 resource kit tools http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
>> >> >> >> 
>> >> >> >> Type
>> >> >> >> oh +otl
>> >> >> >> reboot
>> >> >> >> then
>> >> >> >> oh /t file <filename>
>> >> >> >> or leave filename blank to see all.
>> >> >> >> 
>> >> >> >> EG to see what program has inbox.dbx open (OE's inbox file)
>> >> >> >> 
>> >> >> >> oh /t file inbox.dbx
>> >> >> >> which returns
>> >> >> >> 
>> >> >> >> //
>> >> >> >> // TIME: 2004-03-30 19:50
>> >> >> >> // MACHINE: SERENITY
>> >> >> >> // BUILD: 2600
>> >> >> >> // OH version:  built by: dnsrv_dev(v-smgum)
>> >> >> >> //
>> >> >> >> //
>> >> >> >> 00000CF0 msimn.exe      File           050c \Documents and Settings\David Candy\
>> >> >> >> Local Settings\Application Data\Identities\{E6E1A8F2-C885-46A5-975E-94A4A1F8C788
>> >> >> >> }\Microsoft\Outlook Express\Inbox.dbx
>> >> >> >> 
>> >> >> >> [Microsoft Internet Mail And News (MSIMN.EXE) is the real name of Outlook Express rather than the marketing name. Office's Outlook internet features is a copy of Outlook Express. OL stole OE's code while OE got OL's name. OE got ripped off.]
>> >> >> >> 
>> >> >> >> 
>> >> >> >> -- 
>> >> >> >> ----------------------------------------------------------
>> >> >> >> http://www.uscricket.com
>> >> >> >> "antispam" <antispam@discussions.microsoft.com> wrote in message news:6E10F83C-C247-415B-8E7C-C59EBB73D502@microsoft.com...
>> >> >> >> >I have tried that already.. just tried again.. after the caution if you 
>> >> >> >> > rename a file it may become unstable..... statement I go ahead and it will 
>> >> >> >> > not change, still says "CANNOT RENAME: Being used by another program or 
>> >> >> >> > person....."
>> >> >> >> > 
>> >> >> >> > "David  Candy" wrote:
>> >> >> >> > 
>> >> >> >> >> Rename the file, reboot, delete.
>> >> >> >> >> 
>> >> >> >> >> -- 
>> >> >> >> >> ----------------------------------------------------------
>> >> >> >> >> http://www.uscricket.com
>> >> >> >> >> "Antispam" <Antispam@discussions.microsoft.com> wrote in message news:B73E4CC8-878F-41E7-A1CB-88ACD7A9FF8E@microsoft.com...
>> >> >> >> >> >I mis-identified when I originally posted and I apologize to you all.  It is 
>> >> >> >> >> > an actual .exe progam saved on desktop, NOT a shortcut to the program.  
>> >> >> >> >> > 
>> >> >> >> >> > I tried to delete it in SAFE MODE.  Still get the, cannot delete...   
>> >> >> >> >> > If by command prompt you mean the C: prompt, I have tried that, but cannot 
>> >> >> >> >> > enter the commands to get to that particular directory.  I am very DOS 
>> >> >> >> >> > ignorant.  for example, the file is in this directory;
>> >> >> >> >> > 
>> >> >> >> >> > C:\Documents and Settings\TEST\Desktop
>> >> >> >> >> > 
>> >> >> >> >> > When I try to go to that directory by typing this;
>> >> >> >> >> > 
>> >> >> >> >> > cd C:\Documents and Settings\TEST\Desktop
>> >> >> >> >> > 
>> >> >> >> >> > It tells me unrecognized paramaters.. 
>> >> >> >> >> > 
>> >> >> >> >> > ???
>> >> >> >> >> > 
>> >> >> >> >> > 
>> >> >> >> >> > 
>> >> >> >> >> > "Will Denny" wrote:
>> >> >> >> >> > 
>> >> >> >> >> >> "Haggis" <bingsnapREMOVE@THIShotmail.com> wrote in message 
>> >> >> >> >> >> news:eO5Ef6M0EHA.1568@tk2msftngp13.phx.gbl...
>> >> >> >> >> >> >
>> >> >> >> >> >> > "Will Denny" <willdenny@mvps.org> wrote in message 
>> >> >> >> >> >> > news:OPBu3MM0EHA.3120@TK2MSFTNGP12.phx.gbl...
>> >> >> >> >> >> >> Hi
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Try and delete the shortcut from a command prompt.
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> -- 
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Will Denny
>> >> >> >> >> >> >> MS-MVP - Windows Shell/User
>> >> >> >> >> >> >> Please reply to the News Groups
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> "Antispam" <Antispam@discussions.microsoft.com> wrote in message 
>> >> >> >> >> >> >> news:D859B7D3-D446-48E0-AA38-B5D2DA7A239D@microsoft.com...
>> >> >> >> >> >> >>>I have XP Home, SP2
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> I have a shortcut on my desk top that was created for a game I play 
>> >> >> >> >> >> >>> which
>> >> >> >> >> >> >>> was originally a  "DOS" game.  I would like to remove the shortcut icon.
>> >> >> >> >> >> >>> However, I get this when I try to delete it. ...
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> "Cannot delete, it is being used by another program or person. Close any
>> >> >> >> >> >> >>> programs that might be using this file and try again".
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> I have no idea about that because the program in question has not been 
>> >> >> >> >> >> >>> used
>> >> >> >> >> >> >>> for several months and I am the only user.  I have tried to go into 
>> >> >> >> >> >> >>> command
>> >> >> >> >> >> >>> prompt and delete from there but, the ("DOS") file is buried 4 
>> >> >> >> >> >> >>> directories
>> >> >> >> >> >> >>> deep and there seems to be a problem getting to them based on the SIZE 
>> >> >> >> >> >> >>> of the
>> >> >> >> >> >> >>> directories.
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> Any suggestions would be appreciated.
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> Thanks you.
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> antispam4now@aol.com(donotspam)
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >
>> >> >> >> >> >> > try it in safe mode
>> >> >> >> >> >> 
>> >> >> >> >> >> Hi
>> >> >> >> >> >> 
>> >> >> >> >> >> That's the next option - if the file can't be deleted from a command prompt.
>> >> >> >> >> >> 
>> >> >> >> >> >> 
>> >> >> >> >> >> -- 
>> >> >> >> >> >> 
>> >> >> >> >> >> Will Denny
>> >> >> >> >> >> MS-MVP - Windows Shell/User
>> >> >> >> >> >> Please reply to the News Groups
>> >> >> >> >> >> 
>> >> >> >> >> >> 
>> >> >> >> >> >> 
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>>


Relevant Pages

  • Site Permissions Reset
    ... Does anyone have any idea how lists which have different permissions could ... all end up having their permissions reset to inherit the site's permissions? ...
    (microsoft.public.sharepoint.windowsservices)
  • Reg. Directory listing program
    ... I am new to this mailing list and I am very new to PERL. ... I wrote a code that lists files in a directory with the permissions. ... Directory listing program ...
    (perl.beginners)
  • Re: Different Access Permission Levels on Sharepoint CompanyWeb?
    ... > WSS provides the ability to control permissions on a per-list basis, ... > users, to groups of users, or to a site group. ... > have access to all lists and document libraries on that Web site. ...
    (microsoft.public.windows.server.sbs)
  • RE: Sharepoint approval
    ... matter what I change in the User permissions in Sharepoint. ... Adminstrators and users with the Manage Lists right use the Approve/reject ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Whatever happened to Site Groups in WSS 3.0?
    ... Team Members) then break the inheritance of permissions on certain lists ... libraries and apply different permissions at this but this would be ... Site Groups worked at the site collection level and Site Groups worked ...
    (microsoft.public.sharepoint.windowsservices)