Fascix Posted May 12, 2005 Share Posted May 12, 2005 Hi everyoneokey for starters, i am in my third day of discovering the whole Windows Unattended worldi have viewd the guide on http://unattended.msfn.org and i like it aloti 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 DVDand 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 onbut 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 More sharing options...
spiritpyre Posted May 13, 2005 Share Posted May 13, 2005 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 /silentDid that help? Link to comment Share on other sites More sharing options...
Coolsights2000 Posted May 13, 2005 Share Posted May 13, 2005 Just make a folder and put it hereRead 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 exampleOn Error Resume Next 'Declare var's and objectsDim WshS, fso, sysr, sysd, home, aup, cpf, pf, up, XPCDSet WshS = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")'Expand Environment'Create const's to spare time and placesysr = 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 More sharing options...
Martin Zugec Posted May 13, 2005 Share Posted May 13, 2005 Study Use commandcmd /k copy /?To see syntax of the program... Link to comment Share on other sites More sharing options...
Martin Zugec Posted May 13, 2005 Share Posted May 13, 2005 Study Use commandcmd /k copy /?To see syntax of the program... Link to comment Share on other sites More sharing options...
Fascix Posted May 14, 2005 Author Share Posted May 14, 2005 Thanx for all the helphighly appriciated.(ill probably need help with something else soon, i just can´t stop doing this unattended DVD now) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now