±Recent Visitors

Recent Visitors to Com-Central!

±User Info-big


Welcome Anonymous

Nickname
Password

Membership:
Latest: HighestAce
New Today: 0
New Yesterday: 0
Overall: 6648

People Online:
Members: 0
Visitors: 220
Total: 220
Who Is Where:
 Visitors:
01: Photo Gallery
02: Community Forums
03: Community Forums
04: Home
05: CPGlang
06: Home
07: Community Forums
08: Community Forums
09: Community Forums
10: Downloads
11: CPGlang
12: Community Forums
13: Community Forums
14: Community Forums
15: Home
16: Home
17: Community Forums
18: Community Forums
19: Home
20: Home
21: Home
22: Home
23: Community Forums
24: Statistics
25: Home
26: Community Forums
27: Community Forums
28: Photo Gallery
29: Photo Gallery
30: Home
31: Member Screenshots
32: Community Forums
33: CPGlang
34: Community Forums
35: Community Forums
36: Community Forums
37: Community Forums
38: Photo Gallery
39: CPGlang
40: Photo Gallery
41: Community Forums
42: Member Screenshots
43: Home
44: CPGlang
45: Community Forums
46: CPGlang
47: Photo Gallery
48: Photo Gallery
49: Community Forums
50: Photo Gallery
51: Community Forums
52: Downloads
53: Photo Gallery
54: Photo Gallery
55: Community Forums
56: Home
57: CPGlang
58: Community Forums
59: Community Forums
60: Photo Gallery
61: Member Screenshots
62: Community Forums
63: Home
64: Community Forums
65: Community Forums
66: Community Forums
67: News
68: Home
69: Home
70: Home
71: Community Forums
72: Photo Gallery
73: Member Screenshots
74: Community Forums
75: Member Screenshots
76: Photo Gallery
77: Community Forums
78: Community Forums
79: CPGlang
80: Home
81: Home
82: Treasury
83: Home
84: News
85: Home
86: Home
87: CPGlang
88: Community Forums
89: Community Forums
90: Community Forums
91: Member Screenshots
92: Community Forums
93: Community Forums
94: Community Forums
95: Photo Gallery
96: Community Forums
97: Community Forums
98: Home
99: Home
100: Home
101: Photo Gallery
102: CPGlang
103: CPGlang
104: Community Forums
105: Photo Gallery
106: Community Forums
107: Community Forums
108: Community Forums
109: Home
110: Home
111: Home
112: Community Forums
113: CPGlang
114: Community Forums
115: Community Forums
116: Community Forums
117: Community Forums
118: Member Screenshots
119: Member Screenshots
120: Photo Gallery
121: Home
122: Photo Gallery
123: Community Forums
124: Community Forums
125: Home
126: Photo Gallery
127: Home
128: Photo Gallery
129: Community Forums
130: Community Forums
131: News
132: News Archive
133: Photo Gallery
134: Community Forums
135: Community Forums
136: Community Forums
137: Community Forums
138: Community Forums
139: CPGlang
140: Photo Gallery
141: Photo Gallery
142: Home
143: CPGlang
144: Photo Gallery
145: Home
146: CPGlang
147: Home
148: Home
149: Community Forums
150: Community Forums
151: Community Forums
152: Member Screenshots
153: Photo Gallery
154: Community Forums
155: Member Screenshots
156: Community Forums
157: Community Forums
158: Photo Gallery
159: Community Forums
160: Photo Gallery
161: Home
162: Photo Gallery
163: Home
164: Photo Gallery
165: Community Forums
166: Community Forums
167: CPGlang
168: Photo Gallery
169: Home
170: Community Forums
171: Community Forums
172: Photo Gallery
173: Photo Gallery
174: Community Forums
175: CPGlang
176: Community Forums
177: Community Forums
178: Community Forums
179: Community Forums
180: CPGlang
181: Photo Gallery
182: Community Forums
183: Community Forums
184: CPGlang
185: Community Forums
186: Community Forums
187: Community Forums
188: Community Forums
189: Member Screenshots
190: Photo Gallery
191: Community Forums
192: Community Forums
193: Community Forums
194: Home
195: Community Forums
196: Home
197: CPGlang
198: Community Forums
199: Community Forums
200: Community Forums
201: CPGlang
202: Home
203: Home
204: Home
205: Home
206: Community Forums
207: Photo Gallery
208: CPGlang
209: Photo Gallery
210: Community Forums
211: Community Forums
212: Home
213: Home
214: Community Forums
215: Home
216: Photo Gallery
217: Member Screenshots
218: Community Forums
219: Community Forums
220: CPGlang

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
SnwMan0
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.

'--START--
'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"
strInstallPath=oShell.RegRead(strKey)
If Len(strInstallPath)=0 Then
MsgBox("COD4 is not installed!?")
Wscript.Quit
End If
Dim strSavePath
strSavePath=oShell.SpecialFolders("MyDocuments") & "\CoD4_Profile_Backup"
If Not oFSO.FolderExists(strSavePath) Then oFSO.CreateFolder(strSavePath)
Err.Clear
oFSO.CopyFolder strInstallPath & "\players\profiles", strSavePath, True
If Err.Number=0 Then
MsgBox "Backup Sucessful - Saved to folder '" & strSavePath & "'"
Else
MsgBox "Error while copying profile #" & Err.Number & " - " & Err.Description
End If
Set oShell = Nothing
Set oFSO = Nothing
'--END--



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.

Done!

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.

Enjoy!

_________________

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