DosTips.com

A Forum all about DOS Batch
It is currently 30 Jun 2016 07:55

All times are UTC-06:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Start up program
PostPosted: 11 Mar 2012 14:34 
Offline

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


Top
   
 Post subject: Re: Start up program
PostPosted: 11 Mar 2012 18:36 
Offline

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: Baidu [Spider], Yahoo [Bot] and 18 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® Forum Software © phpBB Limited