Old 5th January 2007, 16:43   #1
Zarx
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?
Zarx is offline   Reply With Quote
Old 5th January 2007, 16:48   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
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
Red Wine is offline   Reply With Quote
Old 5th January 2007, 17:06   #3
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
a quick example to help you :-)
Attached Files
File Type: zip test.zip (588 Bytes, 128 views)

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
Red Wine is offline   Reply With Quote
Old 5th January 2007, 17:07   #4
Zarx
Junior Member
 
Join Date: Dec 2006
Posts: 2
Ok, that sounds simple enough. Thank you!
Zarx is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump