#16871 - 2002-01-30 04:47 PM
Compatibility with Windows XP/NT4
|
David West
Fresh Scripter
Registered: 2002-01-30
Posts: 8
Loc: Croydon, England
|
Kix 2001 ver 4.02The Netlogon share on my NT4 DC's contain a user logon script batch file containing the following: start /b %0\..\wkix32.exe profile.kix The script runs OK on the NT4 workstations,
but on the XP ones it displays the message: "Windows cannot open this file" "File: profile.kix" "To open this file Windows needs to know which program created it" Can anyone explain this and tell we the work around? David West
|
Top
|
|
|
|
#16873 - 2002-01-31 02:27 PM
Re: Compatibility with Windows XP/NT4
|
David West
Fresh Scripter
Registered: 2002-01-30
Posts: 8
Loc: Croydon, England
|
Thanks for the suggestion, but it still gives the same message.I have found that it will work if you remove the "start /b" from the beginning of the line. But you then get two command prompt windows open, one for the batch file and another for wkix32 in which you see the script file running, particularly the part where I run robocopy to update files on the local pc. This is what I am trying to avoid. I want the script to run in the background apart from on screen messages using the AT(x,y) function. It's strange that the original batch file runs OK on an NT4 workstation, but not on an XP. I have also tried sending the output of the batchb file to the nul device, i.e %0\..\wkix32 test.kix >nul but then you don't see anything! The same thing happens if I try to put the following in the the script: Run "robocopy x: y: /Mir" >nul or Run "robocopy x: y: /mir >nul" More advice please! David
|
Top
|
|
|
|
#16876 - 2002-01-31 09:22 PM
Re: Compatibility with Windows XP/NT4
|
David West
Fresh Scripter
Registered: 2002-01-30
Posts: 8
Loc: Croydon, England
|
Thanks for all the suggestionsI'm confused!! 1. Call in a batch file is used to call another batch file, not an exe file. Call in WKIX32 is used to call another script. Neither call seems to have a /i switch. Which one is meant? 2. If wkix32.exe is a console-less version why do you need to use Start /B to prevent the creation of another window (page 17 of manual) The (edited) script I am trying to run is as follows: color n/n run "Robocopy.exe \\server\share\directory c:\directory /MIR /sec /r:1 /w:5" sleep 5 COLOR N/Y+ AT(12,15) "Files Downloaded OK" SLEEP 10 COLOR N/N I want the download using robocopy to happen without the file names being displayed on the screen. All the user should see is the AT message, displayed in black on a yellow background, when the download has finished. Is there a better way? David
|
Top
|
|
|
|
#16879 - 2002-07-18 07:03 PM
Re: Compatibility with Windows XP/NT4
|
RDMMI
Fresh Scripter
Registered: 2002-06-20
Posts: 7
Loc: Alabama, USA
|
Since running a script with kix32, wkix32, and wkix32 /i have difference reactions, wouldn't it be a good idea to have different file extensions and associations for each? E.g., *.kix for kix32, *.kiw for wkix32, and *.kii for wkix32 /i.
That way we could be sure the script is being run in the way it was intended.
|
Top
|
|
|
|
#16883 - 2002-07-23 09:45 PM
Re: Compatibility with Windows XP/NT4
|
RDMMI
Fresh Scripter
Registered: 2002-06-20
Posts: 7
Loc: Alabama, USA
|
> actually wkix does not open any console window > unless your script says so. > this means that if you have output in your script >like "hello everyone!" , it will create a console. > this can be overriden with the I-switch.
I had the .kiw extension associated with:
\WINNT\WKIX32.EXE "%1"
and when used with a script run from a shortcut on the desktop consisting only of a messagebox() I got the flash of a console when the script ended.
Adding the /I to it via:
\WINNT\WKIX32.EXE "%1" /I
got it to run with no flash.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 323 anonymous users online.
|
|
|