Page 1 of 1 1
Topic Options
#113334 - 2004-02-04 06:49 PM Problems with USE *
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Can anybody test the USE * commands under various operating systems?

I'm getting 'Error 2250 - The network connection does not exist.' error messages when trying to delete all mapped drives via the wildcard character under Windows NT and 2000. However, the drives do get removed. I'm using KiXtart v4.22.

Sample script:
Code:

break on

dim $rc

$rc=setoption('explicit','on')
$rc=setoption('novarsinstrings','on')
$rc=setoption('wrapateol','on')

use * @LSERVER+'\share'
? 'Error '+@error+' - '+@serror

sleep 10

use * /delete /persistent
? 'Error '+@error+' - '+@serror

exit 0



Edited by sealeopard (2004-02-04 06:53 PM)
_________________________
There are two types of vessels, submarines and targets.

Top
#113335 - 2004-02-04 06:56 PM Re: Problems with USE *
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Ruud admitted there is a bug with USE * /Delete and promised to fix it, but I don't remember on what version the fix was promised. The workaround has been to wrap the asterisk in quotes as in USE "*" /Delete.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#113336 - 2004-02-04 07:05 PM Re: Problems with USE *
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Sorry, but quotes don't make a difference. The drive are being removed but the function returns error code 2250 instead of 0.
_________________________
There are two types of vessels, submarines and targets.

Top
#113337 - 2004-02-04 07:09 PM Re: Problems with USE *
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Sorry. Did find the original post though.
Bug in version 4.21
I never did test 4.22 to see if it was fixed.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#113338 - 2004-02-04 07:11 PM Re: Problems with USE *
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Still, do you get the same error message?
_________________________
There are two types of vessels, submarines and targets.

Top
#113339 - 2004-02-04 07:25 PM Re: Problems with USE *
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Sorry, works for me with KiX 4.22 on XP.
Quote:

Error 0 - The operation completed successfully.
Error 0 - The operation completed successfully.
C:\KiXScripts>




Dang, lost all my network drives!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#113340 - 2004-02-04 07:33 PM Re: Problems with USE *
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, Windows XP works, however I have it fail under Windows NT/2000 workstations.
_________________________
There are two types of vessels, submarines and targets.

Top
#113341 - 2004-02-04 07:43 PM Re: Problems with USE *
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Same result on 2K Server as XP.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#113342 - 2004-02-04 10:34 PM Re: Problems with USE *
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Hmm, think I found the solution.

I've been testing a UDF on various operating systems, all of which are virtual machines created with VMWare Workstation 4.0.5. VMWare seems to create an automatic share to the host system that is not mapped to a specific drive letter. All virtual machines created the 2250 error (due to this share not being released?) while physical machines did not create that error.

_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.024 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