Page 2 of 2 <12
Topic Options
#134830 - 2005-03-07 05:09 PM Re: XNET.exe without adminrights
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh ... all right, if you say so Bryce
_________________________



Top
#134831 - 2005-03-07 05:44 PM Re: XNET.exe without adminrights
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
It’s easy to test...

Put

Quote:


Windows Management Instrumentation Driver Extensions
Windows Management Instrumentation





Into a text file. And do this from a command prompt.


Type test.txt | find /i "Windows Management Instrumentation"


The find command finds both strings. Now remove "Windows Management Instrumentation" from the test file.... and the find command will find "Windows Management Instrumentation Driver Extensions" even if you were searching for "Windows Management Instrumentation"




Top
#134832 - 2005-03-07 10:13 PM Re: XNET.exe without adminrights
desquinn Offline
Fresh Scripter

Registered: 2005-02-23
Posts: 16
might be better using findstr or grep then with a regular expression
Top
#134833 - 2005-03-08 08:49 AM Re: XNET.exe without adminrights
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
with that way one won't be doomed to rely on wsh which might be disbaled for security reasons in the enterprise environment.

Findtsr would be sufficient used with the /X switch, no? Plus it will be most probably available on any M$ OS ...
_________________________



Top
#134834 - 2005-03-08 12:10 PM Re: XNET.exe without adminrights
desquinn Offline
Fresh Scripter

Registered: 2005-02-23
Posts: 16
not sure of os coverage for findstr but it is on 2000 and XP.

you can use /x /e or a regular expression.

Top
#134835 - 2005-03-08 08:05 PM Re: XNET.exe without adminrights
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Well FIND has been around since MS-DOS 2.0 so I think it will be safe to use for you
Top
#134836 - 2005-03-09 12:56 AM Re: XNET.exe without adminrights
desquinn Offline
Fresh Scripter

Registered: 2005-02-23
Posts: 16
but find does not cut it in this situation as it will provide a false positive since it does not support regular expressions, the concept of an exact match, or any idea of beginning or end of line.

to be honest findstr may be available on a NT4 etc machine but I cant remember. I can only say for definite that findstr appears on xp and 2000.

And again grep is also an alternative that I would end up using as I am used to using it but findstr is just as suitable and may be available as part of the OS

Top
#134837 - 2005-03-09 04:46 PM Re: XNET.exe without adminrights
Anonymous
Unregistered



thanks for your ideas.

Top
#134838 - 2005-03-09 05:23 PM Re: XNET.exe without adminrights
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Findstr on NT 4 (3.51) ?? Definetly there, yeah
_________________________



Top
Page 2 of 2 <12


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

Who's Online
0 registered and 360 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.061 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org