• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Trying to check for the existance of a file using a logon batch file

Hello, this is the command I am trying to get to work:

FOR %%A IN ("\\WIN2008-V2K\deploy\v2k_Test\v2k*.txt") DO IF NOT EXIST "C:\Visual 2000\v2k_Test\%%~xnA" goto TEST
GOTO COMPONENT

It is checking the location for "v2k*.txt" instead of checking for any txt files in that directory. Can anyone help me write this correctly?

Thanks.
Jon
FOR %%A IN ("\\WIN2008-V2K\deploy\v2k_Test\v2k*.txt") DO IF NOT EXIST "C:\Visual 2000\v2k_Test\%%~xnA" goto TEST
GOTO COMPONENT

Open in new window

0
Jon DeVito
Asked:
Jon DeVito
1 Solution
 
Jon DeVitoAuthor Commented:
I figured it out on my own, please close this question.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now