Page 1 of 1 1
Topic Options
#126069 - 2004-09-02 04:40 PM Running Kix inside of Scriptlogic
Anonymous
Unregistered


I am trying to run a very simple batchfile when a terminal server user logons onto the server. However the Scriptlogic custom scripting option is in kIX and not batch files. Could someone either convert this batch file for me or tell me how to call as400.bat from a kIX script.


@echo off

if exist u:\ibm\as400.kmp goto end

u:
md ibm
copy s:\caccess\as400.kmp u:\ibm\as400.kmp

:end

Your help is appreciated.

Top
#126070 - 2004-09-02 04:48 PM Re: Running Kix inside of Scriptlogic
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
There are a few differnet ways of doing it but this is what i would do.

Code:
 
If Exist ("u:\ibm\as400.kmp")
;do nothing
Else
MD "u:\ibm"
Copy "s:\caccess\as400.kmp" "u:\ibm\as400.kmp"
EndIf

Exit 1


_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#126071 - 2004-09-02 04:51 PM Re: Running Kix inside of Scriptlogic
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Untested
Code:
if exist('u:\ibm\as400.kmp') = 0
go u:
md 'ibm'
copy 's:\caccess\as400.kmp' 'u:\ibm\as400.kmp'
endif


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#126072 - 2004-09-02 04:53 PM Re: Running Kix inside of Scriptlogic
Anonymous
Unregistered


THank you sir.
Top
#126073 - 2004-09-02 05:04 PM Re: Running Kix inside of Scriptlogic
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I prefer :

if not exist('u:\ibm\as400.kmp')

much easier to read I think ...
_________________________



Top
#126074 - 2004-09-02 05:09 PM Re: Running Kix inside of Scriptlogic
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I prefer it too but some old KiX versions did not support NOT if memory serves.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#126075 - 2004-09-02 05:15 PM Re: Running Kix inside of Scriptlogic
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Right, these are quite dusty, but still you're right
Forgot that soemeone could still use these old-timers
_________________________



Top
#126076 - 2004-09-03 06:10 AM Re: Running Kix inside of Scriptlogic
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, who said he has old kix?
I bet he has 4.22, at minimum something like 4.12
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 2375 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.131 seconds in which 0.1 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