Jump to content

Recommended Posts

Posted

HI

I need use fallowing command in to the cmd file

If EXIST A:\AdminRun.cmd set INFO=A:

If EXIST D:\AdminRun.cmd set INFO=D:

If EXIST E:\AdminRun.cmd set INFO=E:

etc..

But now i need some command line after (If EXIST A:\AdminRun.cmd set INFO=A:) ,what skip floppy search if floppy not in the drive. How i can do that?


Posted

OK

I try use VB command like On Error resume but now i found right commandline

if errorlevel 0 goto Some_place

If EXIST A:\AdminRun.cmd set INFO=A:

:Some_place

If EXIST D:\AdminRun.cmd set INFO=D:

If EXIST E:\AdminRun.cmd set INFO=E:

sry for distrube

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...