Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-28-2006, 01:46 AM   #1 (permalink)
 
Newb Techie

Join Date: Oct 2006

Posts: 28

mustafa_158

Default Batch file Help !!

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
mustafa_158 is offline  
Old 10-28-2006, 01:00 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

http://www.jpsoft.com/help/index.htm?batchparms.htm
office politics is offline  
Old 10-28-2006, 06:40 PM   #3 (permalink)
 
Newb Techie

Join Date: Jul 2006

Posts: 13

amlife

Default

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
amlife is offline  
Old 10-29-2006, 12:57 AM   #4 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

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"
office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On