|
|
#1 |
|
Junior Member
Join Date: Dec 2006
Posts: 2
|
Check if a folder contains extra files
This may be a somewhat complex problem, and I'm not sure if it's possible with NSIS.
I would like for my script to check if a folder contains any files, ASIDE FROM 3 specific files I am looking for. The best solution I have been able to think of is to copy the three files to another location, delete the originals, check if the folder is empty, then copy the files back. That does not seem like a very elegant solution though. Do I have any other options? |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
It's quite simple. See NSIS documentation about FindFirst FindNext FIndClose.
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5 Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
a quick example to help you :-)
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Dec 2006
Posts: 2
|
Ok, that sounds simple enough. Thank you!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|