Search found 5 matches

by ohenryx2
15 Mar 2024 12:48
Forum: DOS Batch Forum
Topic: path to hosts file from script
Replies: 3
Views: 997

Re: path to hosts file from script

The hosts file on Windows is normally protected. Are you running as admin? Have you tried checking the attributes of the hosts file, is it ReadOnly, Hidden, System?
by ohenryx2
26 Jan 2024 16:00
Forum: DOS Batch Forum
Topic: Batch File to extract files from a zipped file
Replies: 13
Views: 10407

Re: Batch File to extract files from a zipped file

I periodically download the latest nightly build of ffmpeg from this url: https://github.com/BtbN/FFmpeg-Builds/releases The downloaded file is "ffmpeg-master-latest-win64-gpl.zip". The structure of the zip file looks like: ffmpeg-master-latest-win64-gpl .........bin ..............ffprobe.exe .........
by ohenryx2
24 Jun 2023 19:06
Forum: DOS Batch Forum
Topic: How to escape comma in wmic?
Replies: 10
Views: 4746

Re: How to escape comma in wmic?

Okay, I'm curious. What exactly is the point of all this? Why are you using wmic to simply run cmd.exe ?
by ohenryx2
26 May 2023 18:28
Forum: DOS Batch Forum
Topic: Robocopy query
Replies: 3
Views: 1431

Re: Robocopy query

You could always just reformat the external USB drive to NTFS.
by ohenryx2
08 Apr 2023 14:20
Forum: DOS Batch Forum
Topic: DEL oldfiles
Replies: 10
Views: 3306

Re: DEL oldfiles

This is one of those situations where I would use the unix like tools found in Cygwin. There is an excellent discussion of this exact topic "How to find and delete files older than specific days in unix?" at https://unix.stackexchange.com/questions/155184/how-to-find-and-delete-files-older-than-spec...