Messages - mouser [ switch to compact view ]

Pages: prev1 ... 5 6 7 8 9 [10] 11 12 13 14 15 ... 7547next
46
N.A.N.Y. 2021 / Re: NANY 2021: yaydl
« on: May 23, 2022, 03:45 PM »
I still use yaydl, so looking forward to new version!

47
Screenshot Captor / Re: Please Assist with Forum Coder
« on: May 13, 2022, 10:06 PM »
If you're talking about Screenshot Captor, let me start by saying that the program will never stop working or work in a reduced way based on whether you have a license or donate.  So something else is going wrong.

48
Living Room / Re: Happy Mother's Day!
« on: May 12, 2022, 02:02 PM »
Sorry I didn't see this earlier -- happy belated mothers day to all the mothers.

49
Just thought I'd share this little code snippet for a batch (zipcurdir.bat) file that I use quite frequently.
Requires 7-zip but could be adapted for any other zip tool.
Then just put this little .bat file in any directories where you want to be able to super quickly make a uniquely timestamped zip file of the contents of the directory, and then move the zip file out of the way to the parent directory.
I use this all the time when I'm working on a project and it's not under version control and I want to make sure I have quick backups before something goes wrong.

Add any exclusion patterns you want to the extraoptions line, and change 7-zip location if different; or maybe you want to change the destination folder..

for %%a in ("%cd%") do set "CurDir=%%~na"
set thedir=%CurDir%

set mydate=%date:~12,2%%date:~4,2%%date:~7,2%
set TIMEZERO=%TIME: =0%
set HOUR=%TIMEZERO:~0,2%
set MIN=%TIMEZERO:~3,2%
set mytime=%HOUR%%MIN%
set zformat=zip

set extraoptions=-xr!Temp -xr!Junk

set zcmd="c:\program files\7-zip\7z" a -t%zformat% -r %extraoptions%
set fname=%thedir%_%mydate%_%mytime%.%zformat%

echo %zcmd% ..\%fname% .\
%zcmd% ..\%fname% .\


As an example if I put this zipcurdir.bat file in my Documents\Arduino\ folder and run it, I get the file in the parent directory: "Arduino_220506_0615.zip"

The only thing neat about this batch file is the autonaming of the created file based on the current directory and the fact that you never have to modify the batch file no matter where you put it.

50
Living Room / Re: Arduino anyone?
« on: May 04, 2022, 10:20 AM »
Video of my espresso scale in progress can be seen here at the 11:12 mark:
https://youtu.be/h-m7h_l1SJg?t=673

Pages: prev1 ... 5 6 7 8 9 [10] 11 12 13 14 15 ... 7547next
Go to full version