Page 1 of 1 1
Topic Options
#209345 - 2014-08-04 08:49 PM include broken for windows server 2003?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
or is my server misbehaving?
simple:
 Code:
include '.\included.txt'


and with included.txt only containing:
? "hah"

fails.

tested with 2 windows server 2003 installs with kixtart version 4.63
_________________________
!

download KiXnet

Top
#209346 - 2014-08-04 08:51 PM Re: include broken for windows server 2003? [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
same difference with 4.64
_________________________
!

download KiXnet

Top
#209347 - 2014-08-04 09:23 PM Re: include broken for windows server 2003? [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Weird. I don't have server 2003 to test on, but the above works on XP with 4.64.
Top
#209348 - 2014-08-04 09:40 PM Re: include broken for windows server 2003? [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also failed with 4.53

oh. and it errors out like that when I drag the script over wkix32.exe

if I start it from commandline it works.
_________________________
!

download KiXnet

Top
#209349 - 2014-08-04 09:42 PM Re: include broken for windows server 2003? [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that's it. @currentdir = %userprofile% on these servers...
_________________________
!

download KiXnet

Top
#209350 - 2014-08-04 10:03 PM Re: include broken for windows server 2003? [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Does @SscriptDir also point to %userprofile% ?

 Quote:
If you specify a relative path, the path is calculated from the current directory of the KiXtart process.

Top
#209351 - 2014-08-04 11:30 PM Re: include broken for windows server 2003? [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
No. Scriptdir is correct.
_________________________
!

download KiXnet

Top
#209353 - 2014-08-05 08:46 AM Re: include broken for windows server 2003? [Re: Lonkero]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
What if you just do:
 Code:
include 'included.txt'

Top
#209359 - 2014-08-05 10:46 PM Re: include broken for windows server 2003? [Re: Arend_]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it is the same.
which is understandable since CURDIR is elsewhere. thus kixtart fails to find the script.
_________________________
!

download KiXnet

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 739 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.059 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

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