1.

Solve : New to DOS have a quick qustion?

Answer»

I am trying to copy all extentions of *.dat* and have them moved to a new directory within a parent folder. I am also trying at the same time to let the user decide what the name of the directory will be for those files to MOVE into. .. Its fo a batch FILE but UNSURE how to do this or if this can be done. Any suggestions?

ThanksDo you want them moved to the parent directory, or do you want them moved to a user named directory? And what OS are you running?

To move all .dat to the parent directory, you could do:
Code: [Select]move *.dat ..I want them to move to a user named directory. I am running Windows XP.Under Windows XP, you should be able to do this:

Code: [Select]@echo off
setlocal
set /P Dest=Enter the directory you want to move the files to:
move *.dat %Dest%
Be sure to USE quotes if the path contains spaces.



Discussion

No Comment Found