1.

Solve : .bat question about where to put a file...?

Answer»

When I make a batch file how to I make it copy itself in another folder?
like if i want it to copy itself to my DOCUMENTS.

how would I do this?

Thanks,
S_R_SYour intent is not very clear and why you would want a file to copy itself is questionable but:

LET's ASSUME you have created your .bat file and SAVED it in the root of C: as Trial.bat

The bat file content would be something like:
:: ================================
@echo off
cls

copy c:\Trial.bat "c:\my documents\"
:: ================================

When you enter c:\Trial.bat the file will be copied to c:\my documents\trial.bat (PROVIDED that the folder C:\My Documents exists)

Good luck



Discussion

No Comment Found