answersLogoWhite

0

in your batch file type:

Move (the directory or folder and the file) space (the directory you want it in)

example:

move "C:\Users\%username%\Desktop\text.txt" "C:\Users\%username%

You can change the %username% to your username but %username%is the variable for your username

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you move files to a directory in Linux?

mv file /path/to/directory


What is exporting files?

When you move files from one program to another what you doing is exporting the file from one program and importing it into the other program


Blaire is attempting to move one file into a new folder that contains another file with the same name and extension. How can she store both of these files in the same folder?

rename one of the files


Why do I receive the message when I try to move files you cannot move the file because the file name is too long?

i would think thats simply because the name is too long. reaname the file


Can you rename files in a compressed folder?

Yes, Windows should automatically uncompress the file when you attempt the move the file somewhere else.


Which command is used to move a file?

The command MV is used to move a file in simple Linux Code. This command will move files and directories from one spot to another spot. To move a file, one would simply type in the letters MV before its name.


What is the difference between .file and ..file in Unix?

Neither are actually files. They are references to directories, the current one and the parent directory, respectively. They can be used in file copy and move operations in place of explicitly printing the directory names. For instance:mv ./* ..would move all files from the child directory into it's parent.


Do mp3 players use ZIP files?

Usually mp3 players don't support this type of file. If you have a zip file that contains music that you want, you can open it on your computer and move the files somewhere out of the zip file. From here, you can add them to you mp3.


How do you move files in winrar?

right click on the file you want to move inside winrar then click add to rar, Or if you want to be remove outside winrar right on file then click extract.


How do you erase of file from your hard drive?

Deleting a file differs between Operating Systems. One can use the delete key on the keyboard. In GUI-based Operating Systems one can use the delete menu item, delete button, delete icon. One can also drag-and-drop or move files to the delete or trash folder. Text-based commands also exist that also delete files. Text-based commands can be added to scripts or batch files. There are also utilities that securely deletes files by overwriting them several times before deletion.


What dos commands do you use to transfer files?

MOVE as well as COPY and XCOPY, which leave the source file where it was.


How do you create a shortcut to copy certain folders on one hard drive over to another hard drive?

Using a batch file. A batch file is a simple text file that windows (and DOS) treat as DOS commands. Any file with the .bat file extension will have its text submitted to a dos prompt & those commands will be executed. In the following example, i will use made-up folder names, you will have to adjust it to meet your specific needs. Lets say i wanted to make a batch file that copied everything in C:\df\saves\ to D:\backup\ I would open up notepad & put in the following bit of text (minus the dashes im using for page separators --------------------------------------- copy c:\df\saves\*.* d:\backup\ /Y ----------------------------------------- copy is pretty self explanatory c:\df\saves\*.* is the location of the files i want copied. *.* is a wild-card. It means a file with any name and any extension, if i only wanted to copy files with .exe extension i could use *.exe if i only wanted files whos names started with a P, i would use p*.* d:\backup\ is the destination folder /Y is a command-line argument which tells windows (or DOS in this case) not to prompt me & ask if i want to over-write files, itll just assume i do want to overwrite & move on. If you have several folders to copy, you can put in as many lines as you want, they will all be executed in order. Anyway, i would then save the file as whatever.bat (instead of whatever.txt) and make a shortcut to it.