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

Author Topic: Move command  (Read 2989 times)

0 Members and 1 Guest are viewing this topic.

shanked

    Topic Starter


    Beginner
    • Experience: Familiar
    • OS: Windows Vista
    Move command
    « on: December 16, 2010, 04:26:31 PM »
    Could someone please show me how to use the MOVE command properly? Every time i try to use it, it says 'the syntax of this command is incorrect'.

    What I'm trying to do in my code is to move a file from one folder to another.

    Make the example using these examples (please :) )

    Location (folder1): C:\Users\%USERNAME%\Desktop

    Destination (Folder2): C:\Users\%USERNAME%\Documents\Downloads

    Name of file moving is 'Download.txt'

    Thanks :)
    ...

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Move command
    « Reply #1 on: December 16, 2010, 05:30:43 PM »
    You need to specify what file(s) to move:

    Code: [Select]
    move "C:\Users\%USERNAME%\Desktop\filename.ext"  "C:\Users\%USERNAME%\Documents\Downloads"

    Used quotes in case %username# has embedded spaces.

    Good luck. 8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    shanked

      Topic Starter


      Beginner
      • Experience: Familiar
      • OS: Windows Vista
      Re: Move command
      « Reply #2 on: December 17, 2010, 10:29:00 PM »
      Thank you so much it worked perfectly :)
      ...