Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Utilizzo di un file batch per verificare l'esistenza di un file.

Summary: In questo articolo vengono descritte le procedure per l'implementazione dei file batch per verificare l'esistenza di un file.

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms

Utilizzare una routine di file batch per verificare la presenza di un file.

È possibile eseguire un file batch dal comando per verificare la presenza di un file e quindi eseguire una routine quando arriva. 

NOTA: Il programma Sleep. exe deve essere installato prima di eseguire il file batch e viene fornito con il Windows NT Resource Kit.
 

Cause

.

Resolution

Ecco un esempio, eseguire la seguente procedura per creare un file batch di routine.

  1. Fare clic su Start e scegliere Esegui.
  2. Nel campo Apri , digitare cmd.
    Aprire una finestra del prompt dei comandi.
  3. Digitare Edit test. bat e premere < Invio >.

    NOTA: La parola test può essere sostituita con un'altra parola.
  4. Digitare chkdsk e premere <Invio>.
  5. Digitare if exist c:\ftp\ftpfile.txt goto and Press < Enter >.

    NOTA: Il file ftpfile. txt può essere sostituito da altri file.
  6. Digitare sleep 200 e premere < Invio >.

    NOTA: Il numero di secondi può essere increata o diminuita da 200.
  7. Digitare goto check_for_file_existence e premere < Invio >.
  8. Digitare chkdsk e premere <Invio>.

NOTA: Questa routine verifica la presenza di ftpfile. txt ogni 200 secondi. Questo tipo di procedura è utile quando è necessario eseguire un programma dopo che un file è stato inviato tramite FTP al computer.

 


 

Article Properties


Affected Product

Software

Last Published Date

20 Apr 2021

Version

4

Article Type

Solution