±Recent Visitors

Recent Visitors to Com-Central!

±User Info-big

Welcome Anonymous


Latest: Harold_Biondo
New Today: 0
New Yesterday: 0
Overall: 6644

People Online:
Members: 0
Visitors: 71
Total: 71
Who Is Where:
01: Community Forums
02: Community Forums
03: Community Forums
04: Photo Gallery
05: Community Forums
06: Community Forums
07: CPGlang
08: Community Forums
09: Community Forums
10: Community Forums
11: Home
12: CPGlang
13: CPGlang
14: Home
15: Community Forums
16: Community Forums
17: Community Forums
18: Home
19: Home
20: CPGlang
21: Community Forums
22: Community Forums
23: Community Forums
24: Home
25: Community Forums
26: Home
27: Community Forums
28: Community Forums
29: Home
30: Community Forums
31: Your Account
32: Photo Gallery
33: Community Forums
34: Home
35: Photo Gallery
36: Home
37: Community Forums
38: Community Forums
39: Home
40: Search
41: Photo Gallery
42: Home
43: Community Forums
44: CPGlang
45: Community Forums
46: Community Forums
47: Home
48: Home
49: Community Forums
50: Community Forums
51: Community Forums
52: Home
53: CPGlang
54: Community Forums
55: CPGlang
56: Community Forums
57: Community Forums
58: Community Forums
59: CPGlang
60: CPGlang
61: Home
62: CPGlang
63: Downloads
64: Community Forums
65: Community Forums
66: Community Forums
67: Community Forums
68: Community Forums
69: Home
70: Community Forums
71: Home

Staff Online:

No staff members are online!
Back-up CoD4 Profile Script
General discussion about the Call of Duty game!
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ›  Call Of Duty

View previous topic :: View next topic  
Author Message
Power User

Offline Offline
Joined: Feb 04, 2005
Posts: 293
Location: Mn,USA
PostPosted: Wed Mar 19, 2008 11:07 pm
Post subject: Back-up CoD4 Profile Script

Found this script and modified it slightly. This will make a backup of your CoD4 profile in a folder called CoD4_Profile_Backup that's within your My Documents folder.

Copy all the code and paste it into notepad, save as "CoD4_Profile_Backup.vbs" make sure to select All Files at the bottom before you click save. Then simply run it. You can change the icon as well.

'This will backup your CoD4 Player profiles to a folder called CoD4_Profile_Backup in
'My Documents folder. To use this script, save it to a file called
'CoD4_Profile_Backup.vbs' and run it - Originally by Ized modified by Urban.
Option Explicit
On Error Resume Next
Dim oFSO : Set oFSO = CreateObject("Scripting.FileSystemObject")
Dim oShell : Set oShell = CreateObject("WScript.Shell")
Dim strInstallPath, strKey
strKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Activision\Call of Duty 4\InstallPath"
If Len(strInstallPath)=0 Then
MsgBox("COD4 is not installed!?")
End If
Dim strSavePath
strSavePath=oShell.SpecialFolders("MyDocuments") & "\CoD4_Profile_Backup"
If Not oFSO.FolderExists(strSavePath) Then oFSO.CreateFolder(strSavePath)
oFSO.CopyFolder strInstallPath & "\players\profiles", strSavePath, True
If Err.Number=0 Then
MsgBox "Backup Sucessful - Saved to folder '" & strSavePath & "'"
MsgBox "Error while copying profile #" & Err.Number & " - " & Err.Description
End If
Set oShell = Nothing
Set oFSO = Nothing

To change the icon do this.

1. First put the script somewhere you can remember or get to easily.
2. Next Create a shortcut and put that shortcut where you want.
3. Next right click the shortcut and click properties, then click change icon.
4. Choose and icon, or if you want to use a CoD4 style icon, paste the following address in the location box:

%ProgramFiles%\Activision\Call of Duty 4 - Modern Warfare\cod4.ico

Then click Ok.


It can be slightly confusing if you don't pay attention to the text next to icons so you might accidently click the script if your trying to run CoD4.exe

What I do is rename stuff with cap and lower case letters to recognize different ones.



Ullus Vicis , Ullus Qua.
Back to top
View user's profile Visit poster's website MSN Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ›  Call Of Duty
Page 1 of 1
All times are GMT - 6 Hours

Jump to:  

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
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum