Solved

Batch file to delete a file from network

Posted on 2004-04-30
2
200 Views
Last Modified: 2010-04-17
Name of file DB_Backup

Path where the file resides \\server1\folder\file.bak
0
Comment
Question by:jaze95
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 10958769
@echo off
if exist \\server1\folder\file.bak erase \\server1\folder\file.bak



*You will need the correct permission to do so...
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10958854
Thanx. :D
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Definitions and default visual studio colors 5 74
sp_configure 'external scripts enabled', 1; 7 106
Query Syntax 17 50
Why is initMap returning "not a function" error. 3 64
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question