wmic command question

T

Tao Lei

Hello.

Who has interest of this problem, please?

Firstly, I execute this command:
wmic datafile where "drive='d:' and filename like '%setup%'" list

In the result, I can see a "setup.exe" exists in folder "d:\office2003\".

But executing another command returns nothing:
wmic datafile where "drive='d:' and path='\\office2003\\' and filename
like '%setup%'" list

What's it all about, please?

Thanks!
 
P

Pegasus [MVP]

Tao Lei said:
Hello.

Who has interest of this problem, please?

Firstly, I execute this command:
wmic datafile where "drive='d:' and filename like '%setup%'" list

In the result, I can see a "setup.exe" exists in folder "d:\office2003\".

But executing another command returns nothing:
wmic datafile where "drive='d:' and path='\\office2003\\' and filename
like '%setup%'" list

What's it all about, please?

Thanks!

What are you trying to achieve?
 
T

Tao Lei

Hello.

I am learning to use wmic command.
I can use the first command to list "setup.exe".
Why can't I use the second command to list "setup.exe" ?
 
P

Pegasus [MVP]

Tao Lei said:
Hello.

I am learning to use wmic command.
I can use the first command to list "setup.exe".
Why can't I use the second command to list "setup.exe" ?

Sorry, can't help you there. Try reposting your question in windowsxp.wmi or
wmi.programmer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top