How to make a batch file copy itself?

Batch file help ??????

  • I'm trying to make a batch file, but it comes up with error: the syntax of the command is wrong... This is what I Entered to create it: @echo off echo Enter your Computer Account Name set /p username= echo Enter File set /p File= set way=C:\Users\%username%\ COPY %way%%File%\*. echo ****************************************… echo Copying started at %date% %time%>>_log_.txt echo Copying finished at %date% %time%>>_log_.txt pause Please tell me whats wrong

  • Answer:

    COPY %way%%File%\*. doesn't specify where your copying to. COPY %way%%File%\*. %userprofile%\desktop\*.*

Michael at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.