|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
check if dir exists
Hi,
what should i do to check if a directory exists on my filesystem? |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
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 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
i included
!include "FileFunc.nsh" and i check the dir in this way: code: but i get this error: Invalid command: ${DirState} why? thx |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2007
Posts: 19
|
add this to your code below the include statement:
!insertmacro DirState This 'announces' the marco you want to use. xiris |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
or just use:
IfFileExists c:\DIRECTORY\*.* IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|