1.

Solve : Please explain what this code is doing?

Answer»

Quote from: Salmon Trout on April 14, 2012, 11:27:52 AM

1. Check that the variables %driveletter% %wantedfolder% and %backupfilename% expand to what you think they do
2. Check your code much more carefully (it is usually better to copy and paste code, and not to re-type it) This will AVOID wasting other PEOPLES time.

MKDIR "%%driveletter:\%wantedfolder%"
)

MOVE /Y "%backupfilename%" "%driverletter%:\%wantedfolder%\"

3. If you truly WANT to do coding, you need to LEARN (a) to check your own work (b) to be accurate, careful and thorough.
4. If you truly want others to help you, read point (3) again.
5. Read point (3) again.


GOT it...



MKDIR "%driveletter%:\%wantedfolder%"
)

MOVE /Y "%backupfilename%" "%driveletter%:\%wantedfolder%\"



Sorry, I missed the typos... So does it work now, or not?
Yup.
Thanks.


Discussion

No Comment Found