cola99 Posted August 23, 2004 Share Posted August 23, 2004 Is it possible to put COPY command in RunOnceEx.cmd file?? Thanks Link to comment Share on other sites More sharing options...
Coolsights2000 Posted August 23, 2004 Share Posted August 23, 2004 Don't know if you can cause i'm just getting into this stuffbut I used a vbs script file to do it for me here is mine...Just as a NoteI didn't check for the file folder existing when I copied the file cause I know the folder is ther already.. if the folder is not there it will not copy the file so you may need to add if exist to this... XPCD is my environment added strings.. NOT Normally there adshield.vbsOn 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.CopyFolder XPCD & "\Adshield\Adshield", up & "\Application Data\Adshield" , truefso.CopyFile XPCD & "\Adshield\license.txt", pf & "\AdShield\AdShield\license.txt" , true Link to comment Share on other sites More sharing options...
sleepnmojo Posted August 23, 2004 Share Posted August 23, 2004 http://www.msfn.org/board/index.php?showtopic=24782 Link to comment Share on other sites More sharing options...
Adiel Posted August 23, 2004 Share Posted August 23, 2004 i'm using it with no problem like this -cmd.exe /c \xcopy /y %systemdrive%\install\spysweeper\install.dat \"%ProgramFiles%\Webroot\Spy Sweeper\\"and its working like a charm, hope it helped you. Link to comment Share on other sites More sharing options...
edbro Posted August 23, 2004 Share Posted August 23, 2004 Another alternative is to use self extracting archives. I had a lot of stuff I wanted to copy so I created SFXs that automatically extract to the proper folders. Saves space too. 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