±Recent Visitors

Recent Visitors to Com-Central!

±User Info-big


Welcome Anonymous

Nickname
Password

Membership:
Latest: freaknikz
New Today: 0
New Yesterday: 0
Overall: 6598

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

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 ›  Ground Pounders!!Call Of Duty

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

Offline Offline
Joined: Feb 03, 2005
Posts: 293
Location: Mn,USA
PostPosted: Wed Mar 19, 2008 5: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 ›  Ground Pounders!!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