Start up program

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
joakim
Posts: 24
Joined: 07 Mar 2012 12:08

Start up program

#1 Post by joakim » 11 Mar 2012 14:34

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

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: Start up program

#2 Post by abc0502 » 11 Mar 2012 18:36

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

Post Reply