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
Start up program
Moderator: DosItHelp
Re: Start up program
If you are copying one file use copy like this
if you like to confirm the copy remove /Y
to use Xcopy Command to copy folders and it's content:
Remove /Y to confirm the copy
use /Q to hide copying process
and There is no "xpaste" Command
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