Search found 5 matches
- 06 Aug 2017 11:40
- Forum: DOS Batch Forum
- Topic: Delete files AND folder over 30 days old - is this the correct approach?
- Replies: 2
- Views: 3055
Re: Delete files AND folder over 30 days old - is this the correct approach?
Hello, 1) There's one case in your approach that might yield an unexpected result: What if a directory that you are removing contains files not older than 30 days? So the directory is 30 days old but not some of the files inside it. Do you really want to remove that folder? 2) To stop using forfiles...
- 28 Jun 2016 13:15
- Forum: DOS Batch Forum
- Topic: ChangeMACAddressBatch script
- Replies: 1
- Views: 4989
ChangeMACAddressBatch script
Hello, I wrote a neat script to change the MAC address of network adapters using Batch and the available supporting OS commands. Where to get latest version: m Features: [*] Change MAC address of online and offline network cards [*] Revert / Reset MAC address [*] Interactive menu [*] Command line in...
- 30 May 2016 18:51
- Forum: DOS Batch Forum
- Topic: Batch script to move files older than 1 day
- Replies: 9
- Views: 15185
Re: Batch script to move files older than 1 day
One time is instead of directly doing "cmd /c move @file", I would do a "cmd /c echo move ....". Simply add "ECHO" to see the command that will be executed. This will let you troubleshoot what's the problem and adjust the command accordingly. You may want to resort to u...
- 30 May 2016 18:39
- Forum: DOS Batch Forum
- Topic: How to get output of program to variable?
- Replies: 5
- Views: 6388
Re: How to get output of program to variable?
Hi, It is not clear exactly what you are asking but from what I understood, you want to: 1. run a command 2. capture and parse its output 3. the parsed output should be passed to another command? For (1) and (2), you may want to use the FOR /F syntax with the backquote to capture the output and pars...
- 19 May 2016 18:30
- Forum: DOS Batch Forum
- Topic: WiFiPasswordReveal
- Replies: 4
- Views: 6929
WiFiPasswordReveal
A simple and handy script to reveal all the saved Wifi passwords. The script can also be retrieved from GitHub https://github.com/PassingTheKnowledge/Batchography/blob/master/WifiPasswordReveal.bat : @echo off setlocal enabledelayedexpansion :main title WiFiPasswordReveal v1.0 echo. echo Reveal all ...