Search found 4 matches
- 10 Mar 2016 03:41
- Forum: DOS Batch Forum
- Topic: Batch Delete Files on server
- Replies: 7
- Views: 5089
Re: Batch Delete Files on server
Okay, I tried using pushd to the most common folder, didn't work. However it does work it right to the folder the files sit in. What I'll do is create a spreadsheet with all the file paths and seperate the file names from their path. Then pushd folderpath del file1.txt del file2.txt popd pushd nextf...
- 10 Mar 2016 03:26
- Forum: DOS Batch Forum
- Topic: Batch Delete Files on server
- Replies: 7
- Views: 5089
Re: Batch Delete Files on server
Awesome, just added the pause and ran it. I think I know what the problem is. I'm accessing the files through a remote desktop, the error reads "C:\Users\MyName\Desktop>del Z:\Folder\subfolder\file.txt /f The system cannot find the file specified" If I use pushd to a certain folder level i...
- 09 Mar 2016 10:50
- Forum: DOS Batch Forum
- Topic: Batch Delete Files on server
- Replies: 7
- Views: 5089
Re: Batch Delete Files on server
then saved it in a .bat file from notepad. It worked fine on my desktop for the tests I ran but doesn't work on the server locations. Did you see any error messages on the console? What did you see? Nothing, I mean the console popped up and did something really quickly then disappeared but I don;t ...
- 09 Mar 2016 09:45
- Forum: DOS Batch Forum
- Topic: Batch Delete Files on server
- Replies: 7
- Views: 5089
Batch Delete Files on server
Good Afternoon all, I'm trying to delete a whole bunch of files on a server. I'm new to writing .bat files and I'm not entirely sure what to do. I have a long list of files and currently I just used excel to add 'del' in from of the path and '/f' at the end then saved it in a .bat file from notepad....