Batch file Help !!

Status
Not open for further replies.

mustafa_158

Baseband Member
Messages
28
Hello there ... I'm lost & I need help.

Please I need help with my batch file ...

My knowledge is really basic ... I need help ...

I'm willing to make a basic batch file which will prompt the user to type the old account name and the new account and copy the files and overwrite the duplicates ...

incase if one of the users of windows is willing to change his account due to some problems with his current account he can make new one and then copy all files to it.


is this possible ???

this is what I have done !

echo This Batch file will help you moving your files from your old account to the new one quickly !

puse

move /y "C:\Documents and Settings\old C:\Documents and Settings\new"

@echo


I have n idea how to make the input for the account names ??????????

Please Help me ?

Thanks
 
Thanks for your help

This is what I came with !! but it's not working as it suppose to ...

it looks fine for me !!

----------------------------------------------

@echo off
echo This Tool will copy your files quickly from one account to another.

@echo off
echo enter your old account name.
set /p variable1=
echo You have entered : %variable1%

@echo off
echo enter your new account name.
set /p variable2=
echo You have entered : %variable2%
pause


MOVE /y "%homedrive%Documents and Settings\%variable1%" "%homedrive%Documents and Settings\%variable2%"


---------------------------

Anybody can add something to fix it


Thanks
 
create a batch file containing the following

@echo off

echo %1 %2


execute from command line: filename.bat one two
execute from command line: filename.bat "this is one" "This is two"
 
Status
Not open for further replies.
Back
Top Bottom