Avatar billede security_him_self Nybegynder
16. august 2004 - 08:04 Der er 7 kommentarer og
2 løsninger

Kopiere fil fra c-drev til diskette (hasteopgave - please)

Jeg har 2 filer på en windows ME (som har fået virus eller fejl) som jeg bare skal bruge om 1 time....

Hvad er kommandoen for at kopiere fra en mappe i dokumenter og ned på diskette

Mange point = hurtig svar
Avatar billede b_hansen Novice
16. august 2004 - 08:06 #1
Hvis du står i mappen og kun skal kopiere filer:
copy *.* a:
Avatar billede tubber Juniormester
16. august 2004 - 08:17 #2
Her er lige al syntax:

COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
    [+ source [/A | /B] [+ ...]] [destination [/A | /B]]

  source      Specifies the file or files to be copied.
  /A          Indicates an ASCII text file.
  /B          Indicates a binary file.
  /D          Allow the destination file to be created decrypted
  destination  Specifies the directory and/or filename for the new file(s).
  /V          Verifies that new files are written correctly.
  /N          Uses short filename, if available, when copying a file with a
              non-8dot3 name.
  /Y          Suppresses prompting to confirm you want to overwrite an
              existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
              existing destination file.
  /Z          Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.  Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.
To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).

og du kan også bruge xcopy.....
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                          [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                          [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
                          [/EXCLUDE:file1[+file2][+file3]...]

  source      Specifies the file(s) to copy.
  destination  Specifies the location and/or name of new files.
  /A          Copies only files with the archive attribute set,
              doesn't change the attribute.
  /M          Copies only files with the archive attribute set,
              turns off the archive attribute.
  /D:m-d-y    Copies files changed on or after the specified date.
              If no date is given, copies only those files whose
              source time is newer than the destination time.
  /EXCLUDE:file1[+file2][+file3]...
              Specifies a list of files containing strings.  Each string
              should be in a separate line in the files.  When any of the
              strings match any part of the absolute path of the file to be
              copied, that file will be excluded from being copied.  For
              example, specifying a string like \obj\ or .obj will exclude
              all files underneath the directory obj or all files with the
              .obj extension respectively.
  /P          Prompts you before creating each destination file.
  /S          Copies directories and subdirectories except empty ones.
  /E          Copies directories and subdirectories, including empty ones.
              Same as /S /E. May be used to modify /T.
  /V          Verifies each new file.
  /W          Prompts you to press a key before copying.
  /C          Continues copying even if errors occur.
  /I          If destination does not exist and copying more than one file,
              assumes that destination must be a directory.
  /Q          Does not display file names while copying.
  /F          Displays full source and destination file names while copying.
  /L          Displays files that would be copied.
  /G          Allows the copying of encrypted files to destination that does
              not support encryption.
  /H          Copies hidden and system files also.
  /R          Overwrites read-only files.
  /T          Creates directory structure, but does not copy files. Does not
              include empty directories or subdirectories. /T /E includes
              empty directories and subdirectories.
  /U          Copies only files that already exist in destination.
  /K          Copies attributes. Normal Xcopy will reset read-only attributes.
  /N          Copies using the generated short names.
  /O          Copies file ownership and ACL information.
  /X          Copies file audit settings (implies /O).
  /Y          Suppresses prompting to confirm you want to overwrite an
              existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
              existing destination file.
  /Z          Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.
Avatar billede tubber Juniormester
16. august 2004 - 08:26 #3
forskellen på xcopy og copy er at xcopy læser hele filen før den skriver den, og det kan du med fordel bruge når du nu snakker om virus.....og så med /V

xcopy c:\dir\file.doc a:\file.doc /V

eller som b_hansen skriver hvis du står i mappen:
xcopy *.* a: /V

*.* er kun gældende hvis det er ALLE filer der skal med, er f.eks. kun alle doc filer så er det xcopy *.doc a: /V

eller er det alle file med et bestemt navn så er det file.*
eller er det med bestem begyndelses bogstav så f*.*

/Tubber
Avatar billede security_him_self Nybegynder
16. august 2004 - 08:29 #4
laver i lige alle et svar
Avatar billede tubber Juniormester
16. august 2004 - 08:37 #5
Giv dem til b_hansen han gav det rigtige svar, kom bare lige med det andet for du fik det hele med så kunne du selv lige afgøre hvad for switches du har behov for.....

kender du en dos commando men ikke syntaxen kan du altid bruge /? f.eks. dir kender du vel.....

dir /? så får du alt det du kan med dir :)
Avatar billede b_hansen Novice
16. august 2004 - 08:39 #6
Jeg synes nu, du skal have halvdelen tubber. Dit svar er mere fyldestgørende
Avatar billede security_him_self Nybegynder
16. august 2004 - 08:48 #7
50%-50%
Avatar billede tubber Juniormester
16. august 2004 - 08:51 #8
ok kommer her :)

og takker

HUSK! Er der virus i filerne så kommer de med......
Avatar billede security_him_self Nybegynder
16. august 2004 - 13:03 #9
tak
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



Seneste spørgsmål Seneste aktivitet
I dag 14:04 Pixeline cd’er til PC Af Mathilde i Windows
I dag 01:14 Windows 10 - IIS 10 Af bsn i Windows
I går 20:39 Boot fra USB Af poulmadsen i Windows
I går 11:43 Gmail-ikon på skrivebordet Win 10 Af ErikHg i Fri debat
I går 09:22 Lopslag Af Luffe i Excel