Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Batch File help me i got a job to do


  • Please log in to reply

#1
Andrew666

Andrew666

    Member

  • Member
  • PipPip
  • 12 posts
in Batch File how do i do IF EXIST goto :1 if NOT goto :2 how plz help :tazz:
  • 0

Advertisements


#2
Les1451

Les1451

    Member

  • Member
  • PipPipPip
  • 165 posts
Use IF... THEN... ELSE....

Example
  • 0

#3
Andrew666

Andrew666

    Member

  • Topic Starter
  • Member
  • PipPip
  • 12 posts
plz can a ppl say how to do it or git me the code ? :tazz:
  • 0

#4
Swandog46

Swandog46

    Malware Expert

  • Member
  • PipPipPipPip
  • 1,026 posts
  • MVP
I would do:

SET FILE=filename
IF EXIST %FILE% GOTO label1
GOTO label2

:label1

(some code)


:label2

(some code)


Substitute filename for whatever the file name really is. :tazz:
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP