Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Please explain what this code is doing  (Read 16670 times)

0 Members and 1 Guest are viewing this topic.

S3NTYN3L

    Topic Starter


    Rookie

    • Yes
  • Experience: Familiar
  • OS: Windows 7
Re: Please explain what this code is doing
« Reply #30 on: April 14, 2012, 11:44:06 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... :-[

Salmon Trout

  • Guest
Re: Please explain what this code is doing
« Reply #31 on: April 14, 2012, 12:05:09 PM »
So does it work now, or not?

S3NTYN3L

    Topic Starter


    Rookie

    • Yes
  • Experience: Familiar
  • OS: Windows 7
Re: Please explain what this code is doing
« Reply #32 on: April 14, 2012, 04:08:09 PM »
Yup.
Thanks. ;)