Page 1 of 1

Start up program

Posted: 11 Mar 2012 14:34
by joakim
Hi, I want to move a file to this dir "C:\Documents and Settings\All Users\Start Menu\Programs\Startup" is there some one ho can help me?









cls
@ECHO OFF
color a

xcopy C:\Users\Joakim Skoglund\Desktop\lol.exe


xpaste C:\Documents and Settings\All Users\Start Menu\Programs\Startup


exit

Re: Start up program

Posted: 11 Mar 2012 18:36
by abc0502
If you are copying one file use copy like this

Code: Select all

@echo off
cls
Set source=C:\Users\Joakim Skoglund\Desktop\lol.exe
set dist=C:\Documents and Settings\All Users\Start Menu\Programs\Startup\lol.exe
::==========
Copy /Y "%source%" "%dist%"

if you like to confirm the copy remove /Y

to use Xcopy Command to copy folders and it's content:

Code: Select all

@echo off
cls
Set source=C:\Users\Joakim Skoglund\Desktop\lol.exe
set dist=C:\Documents and Settings\All Users\Start Menu\Programs\Startup\lol.exe
::==========
Xcopy "%source%" "%dist%" /E /I /H /R /Y

Remove /Y to confirm the copy
use /Q to hide copying process

and There is no "xpaste" Command