how to delete files in a network folder using

July 28, 2011 at 07:52:23
Specs: Windows 2003, 2/4gb
I would like to simple batch file script to delete all pdf files in a network folder after a program has run

\\SERVER1\PUBLIC\PDFTEMP is the folder - all the PDF files get listed there

Can anyone help?


See More: how to delete files in a network folder using

Report •

#1
July 28, 2011 at 23:42:59
From the command prompt..

c:\>pushd \\SERVER1\PUBLIC\PDFTEMP

then hit Enter Key

Now look like ..

z:\>

now you can delete files by like below

z:\> del *.pdf

and then hit enter.


Note:- For this you should have admin privileges on that remote machine..

The pushd command is the drive map command..

Thanks,

ServerAdministrators


Report •
Related Solutions


Ask Question