Jump to content

Copy only one or a few files [newbie]


Recommended Posts

Hi everyone

okey for starters, i am in my third day of discovering the whole Windows Unattended world

i have viewd the guide on http://unattended.msfn.org and i like it alot

i can say that i dont have any good knowledge about this at all but as far as i can see on thoose pages i do understand most of it.

I am now trying to put all my apps i want on my new Win XP DVD

and so far so good. trying to find the silent switches for my programs ither here or "on my own" with the help of ussf and peid and so on

but on easy thing troubles me. please dont laugh at me here...

How do i copy only one file over silently?

I meen i have Media Player Classic for instance and its only one file the "mpc.exe"

how do i just copy over that file to a dir of my choice silently? and where do i put the "copy tag"

Thanx for any help

Link to comment
Share on other sites


If I remember correctly mpc is standalone (you can click on it and use it without installing it)

If this is the case, then you could write a batch file like:

mkdir "path\{foldername you want to put it in}"
copy "path\{folder its in}\mpc.exe" "path\{foldername you want to put it in}"

where "path\{folder its in}" might be "C:\Install\MPC\" if you had the file was in "XPCD\$OEM$\$1\Install\MPC\mpc.exe"

Another thing you can do is use Real Alternative, Which is just Media Player Classic bundled with Real Player codecs (and installs mpc automatically). I use this in my ua cd because I'm lazy and this saves me having to write an extra batch file. The switch is /silent

Did that help?

Link to comment
Share on other sites

Just make a folder and put it here

Read on what folders you can put under the $OEM folder...

It will be copied automatic

$OEM$\$Progs\

or if want to do it by hand use vbs,,,

here is an example

On Error Resume Next 
'Declare var's and objects
Dim WshS, fso, sysr, sysd, home, aup, cpf, pf, up, XPCD

Set WshS = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")

'Expand Environment
'Create const's to spare time and place
sysr = WshS.ExpandEnvironmentStrings("%SystemRoot%")
sysd = WshS.ExpandEnvironmentStrings("%Systemdrive%")
home = WshS.ExpandEnvironmentStrings("%Homepath%")
aup = WshS.ExpandEnvironmentStrings("%AllUsersProfile%")
cpf = WshS.ExpandEnvironmentStrings("%CommonProgramfiles%")
pf = WshS.ExpandEnvironmentStrings("%Programfiles%")
up = WshS.ExpandEnvironmentStrings("%UserProfile%")
XPCD = WshS.ExpandEnvironmentStrings("%XPCD%")

fso.CopyFile XPCD & "\Prog\PSTrayFactory\PSTrayFactory.exe", pf & "\PS Tray Factory\PSTrayFactory.exe" , true

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...