Page 1 of 1 1
Topic Options
#68089 - 2002-07-12 03:39 PM MD does not seem to work
Chris P Offline
Lurker

Registered: 2001-12-14
Posts: 1
Loc: Amstelveen
Can someone tell me why this Kiscode doesn't work:

IF NOT EXIST ("C:\Documents and Settings\All Users\Start Menu\Programma\RIF Algemeen4\.")
MD "C:\Documents and Settings\All Users\Start Menu\Programma\RIF Algemeen4"
ENDIF

Using Kix 4.10 and Win XP Pro NL.

Looking forward to your help!

Chris P.

Top
#68090 - 2002-07-12 03:42 PM Re: MD does not seem to work
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
try with this:
IF NOT EXIST ("C:\Documents and Settings\All Users\Start Menu\Programma\RIF Algemeen4")
MD "C:\Documents and Settings\All Users\Start Menu\Programma\RIF Algemeen4"
ENDIF
_________________________
!

download KiXnet

Top
#68091 - 2002-07-12 03:59 PM Re: MD does not seem to work
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Check your permissions. By default, only Administrators have CREEATE/WRITE/APPEND permissions in the 'All Users' profile, so a regular user cannot add a directory/file to it.

Also, replace 'C:\Documents and Settings\All Users' with %ALLUSERPROFILE% to make it more generic in case the location has been changed.

[ 12 July 2002, 16:01: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#68092 - 2002-07-13 07:39 AM Re: MD does not seem to work
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Chris,

Environment variables will work.. But, you could do the following:
code:
$programloc = READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Common Programs")

IF 1 <> EXIST ($programloc+"\RIF Algemeen4\.")
MD $programloc+"\RIF Algemeen4"
ENDIF

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 756 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.053 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org