View unanswered posts | View active topics It is currently 30 Oct 2014 09:07



Post new topic Reply to topic  [ 2 posts ] 
Start up program 
Author Message

Joined: 07 Mar 2012 12:08
Posts: 24
Post Start up program
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


11 Mar 2012 14:34
Profile

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Re: Start up program
If you are copying one file use copy like this

Code:
@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:
@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


11 Mar 2012 18:36
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.