#118079 - 2004-04-16 09:36 AM
Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
How can I do a logfile? I've test with WriteLine and RedirectOuput but it dosn't work
|
Top
|
|
|
|
#118081 - 2004-04-16 10:04 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
Okay i've tried this:
Shell 'echo Folgende Datei wurde Koventiert und ins Archiv verschoben: $FileNameXLS >> "C:\KiX\Archiv\log.txt"'
But, it doesn't work
I will be soon in Stuttgart I'm from Bay0rn
|
Top
|
|
|
|
#118083 - 2004-04-16 10:22 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
oh kool thank u it works
Another question... the cpu-requierments are at 100% how can i change this?
//EDIT
okay i`ve resolved this problem with Sleep 10
Edited by kixnewbie (2004-04-16 10:24 AM)
|
Top
|
|
|
|
#118085 - 2004-04-16 10:33 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
Sleep 10 are 10 seconds? so.. 10 seconds are okay i think. Should 0.001 is the same effect like 10 on the cpu-system?
|
Top
|
|
|
|
#118087 - 2004-04-16 10:38 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
IF @TIME = "10:30:00"
Shell '"C:\kix\pkzip -a %DATE:.=%.zip C:\KiX\Archiv\*.*"
Shell '%ComSpec% /c echo Backup Datei wurde erstellt (%DATE:.=%.zip) >> "C:\KiX\Archiv\log.txt"'
ELSE
GOTO "convert"
ENDIF
If i have this code.. it exits the script automaticaly.. why?
How is it possible to remove File extensions?
Edited by kixnewbie (2004-04-16 10:44 AM)
|
Top
|
|
|
|
#118090 - 2004-04-16 10:54 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
I mean this:
Shell '"$ppath\BatchPDF.exe" "$ipath\$FileNameDOC" "$opath\$FileNameDOC.pdf"'
//Edit
Shell '"$kpath\pkzip -a @DATE.zip $apath\*.*"'
Shell '%ComSpec% /c echo Backup Datei wurde erstellt (%DATE:.=%.zip) >> "$apath\log.txt"'
KiX do the second shell but not the first... help me!
This creates a pdf file like this: bla.doc.pdf I would like to remove the .doc
//Edit2
It works now
Edited by kixnewbie (2004-04-16 11:09 AM)
|
Top
|
|
|
|
#118092 - 2004-04-16 11:15 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
It dont work. Befehl oder Dateiname nicht gefunden is the Error. Command or File not found is the error.
|
Top
|
|
|
|
#118094 - 2004-04-16 11:29 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
At the moment WinXP Prof. the script should be run on a Win2k3 Server.. Other question is it possible to check if the script already runs if someone want to start one more time?
|
Top
|
|
|
|
#118096 - 2004-04-16 11:54 AM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
Okay I will check the path.
Should I do the check at firstline like this? If exist( lala.kix ) exit 1 endif
|
Top
|
|
|
|
#118098 - 2004-04-16 12:04 PM
Re: Logfile?
|
kixnewbie
Fresh Scripter
Registered: 2004-04-15
Posts: 38
|
Resolved!
Now against to this line:
shell '%ComSpec% /c rename "C:\KiX\Out\$FileNameXLS.pdf" ' + split($FileNameXLS,'.')[0] + '.pdf'
should it be
shell '%ComSpec% /c rename "C:\KiX\Out\$FileNameXLS.pdf" ' + split(C:\KiX\Out\$FileNameXLS,'.')[0] + '.pdf'
?
//EDIT
hey Resolved it works now ) too! Thank u i should go home now. More on Monday
Edited by kixnewbie (2004-04-16 12:08 PM)
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 138 anonymous users online.
|
|
|