Link to home
Start Free TrialLog in
Avatar of SQLNewBieUSA
SQLNewBieUSA

asked on

How to Delete a PDF file used by another process / Person thriguh MD-DOS Command ?

Hi friends,
I am trying to delete one PDF file, which is using by another Process / Person.

How can i delete this PDF file usign MS-DOS command ?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of jorlando66
jorlando66
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James
From the server if you right on My Computer and select Manage - expand Shared Folders - Open Files. You will see what files are open. If you right click on the file and select disconnect file and this will close the file.

To delete the file form MS Dos you can use these commands:

•cd < directory name>
•cd is the basic DOS command, it allows you to change directory.
•dir [ name of directory]
•dir allows you to list all contents of the specified directory.
•copy <source> <destination>
•Allows you to copy a file from a <source>folder to a <destination folder>.
•del<file>
•delete specific file.
•move <source> <destination>
•Allows you to move a file from a <source>folder to a <destination folder>.
•ren <source> <destination>
•Rename the specified file.
•edit <filename>
•Opens the default DOS editor to allow modification of specified file.
•cls
•Clear DOS screen.
•exit
•Leave the DOS terminal.
Also, from MS DOS you can type tasklist and this will show all running process and pids. Make sure to do this from the server. To end a process type tskill followed by the pid number.
Have you tried UnLocker?
Avatar of griff4345
griff4345

Hi:

Sometimes an app will apply a HOOK to a file and won't let it go for a day. You can go into the server or box where the original file resides and delete it if you have the permissions for that activity. You do that through a DOS COMMAND shell.

Or you can acquire a small app called UnLocker and it will clear the Locks/Hooks for you.

Unlocker 1.8.9 - It's a free file.

Best of luck!
---GRIFF
Download Unlocker 1.9.0 from here:


Unlocker 1.9.0    32-bit version        http://www.brothersoft.com/download-unlocker-208761.html

Unlocker 1.9.0    64-bit version        http://www.brothersoft.com/download-unlocker-60547.html

Unlocker 1.9.0    32/64-bit version  http://ccollomb.free.fr/unlocker/unlocker1.9.0-portable.zip


Also, see:  http://ccollomb.free.fr/unlocker/

Avatar of SQLNewBieUSA

ASKER

solved