Page 1 of 1 1
Topic Options
#65594 - 2002-05-21 01:29 PM Problem read from network driver in script.
Gera Offline
Getting the hang of it

Registered: 2002-02-27
Posts: 70
Loc: Israel
Hi!
I run script localy,v3.63 on win9x station.Everything was fine.
This is update of antivirus and some script for invenory.

If @WDAYNO="0" Or @WDAYNO="3"
Shell "%comspec% /e:2048 /c \\server_BDC\cheyupd$\avupdate.exe"
Else Goto "inv"
EndIf

If @WDAYNO="1"
shell "%comspec% /e:2048 /c \\server_PDC\networkfolder\programm\file.exe"
Else Goto "ie"
EndIf

It's stop to read.I have one station Winxp it's steel ok there.When I change to run script from netlogon folder it's start to read.

Top
#65595 - 2002-05-21 02:08 PM Re: Problem read from network driver in script.
Kdyer Offline
KiX Supporter
*****

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

You need to be cautious about using Admin Shares (i.e. cheyupd$). If you or another Domain Admin are running these scripts, fine. But the general users would not have Domain Administration rights to your servers.

Instead of using SHELL, can't you use RUN? Whose AV Product you using?

If you are replicating your script and files, can't you also use @LDRIVE or @LSERVER ?

code:
If @WDAYNO="0" Or @WDAYNO="3"
RUN "\\server_BDC\cheyupd\avupdate.exe"
Else Goto "inv"
EndIf

If @WDAYNO="1"
RUN "\\server_PDC\networkfolder\programm\file.exe - silent"
Else Goto "ie"
EndIf

HTH,

- Kent

[ 21 May 2002, 14:08: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#65596 - 2002-05-21 05:08 PM Re: Problem read from network driver in script.
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
If you log in as a user under Windows 9x and open a command prompt, does the line '\\server_BDC\cheyupd$\avupdate.exe' or '\\server_PDC\networkfolder\programm\file.exe' work?
_________________________
There are two types of vessels, submarines and targets.

Top
#65597 - 2002-05-22 10:22 AM Re: Problem read from network driver in script.
Gera Offline
Getting the hang of it

Registered: 2002-02-27
Posts: 70
Loc: Israel
Hi!
I really don’t now what happen…
The problem is when I run from command line it’s works.I change to RUN the same,no result.When I run from kixeditor just these lines it’s work fine.I bealive this is some problem with network I don’t now where start to check.Everything was work fine before.

Top
#65598 - 2002-05-22 10:32 AM Re: Problem read from network driver in script.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Gera,

I'm a little lost here...

1. One workstation having a problem or all?
2. One workstation works, all others don't?
3. XP workstation does or does not work?
4. Have you brought up any new severs lately? Does the rest of the script work properly and only this section is a problem?
5. Has someone modified permissions on the share or NTFS ?
6. Problem with all user accounts or only some?

Instead of RUN or SHELL you can assign it to a variable and then Display that variable to the screen to see if it is running the command properly (i.e. is the syntax correct)
You can also put in @ERROR entries to try to track down the issue.

[ 22 May 2002, 10:34: Message edited by: NTDOC ]

Top
#65599 - 2002-05-23 02:49 PM Re: Problem read from network driver in script.
Gera Offline
Getting the hang of it

Registered: 2002-02-27
Posts: 70
Loc: Israel
Hi!
I really don’t now what is happen .I fix the problem, but I didn’t found what is reason. I think I made to much test, change version from 3.63 to 4.02 and back few timesWhen I start to run script from network folder its works. So, I delete all files from local drive and its OK now.

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 1619 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.056 seconds in which 0.025 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