Old 21st October 2010, 00:18   #1
coldturkey1
Junior Member
 
Join Date: Oct 2010
Posts: 2
Location of Main.Dat

On my work computer I have limited profile space.

The main.dat file in application data takes up a significant portion of this space.

Is it possible to move the location of this file (and adjust path settings accordingly)?
coldturkey1 is offline   Reply With Quote
Old 21st October 2010, 00:49   #2
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,821
Hi

Yes.

You can manually edit the paths.ini file (in %ProgramFiles\Winamp folder)
and point inidir= to any folder of your choice

The default location is:

inidir={26}\Winamp

where {26} is equivalent to %AppData%

Make sure winamp is closed before editing paths.ini

Then just move all the files from %AppData%\Winamp to the new folder.....
DJ Egg is offline   Reply With Quote
Old 21st October 2010, 00:58   #3
coldturkey1
Junior Member
 
Join Date: Oct 2010
Posts: 2
Awesome. Thanks, didn't think it would be so easy. I search for a solution but must have been using the wrong terms.
coldturkey1 is offline   Reply With Quote
Old 1st August 2013, 16:32   #4
Glaucus
Junior Member
 
Join Date: Jun 2013
Posts: 3
This (old) thread (that I'm about to resurrect) answered my question as to how to find the main.dat file. However, I'm not quite sure how to translate {26} to %AppData%. Is this some kind of Windows standard or is it just a magic token used by Winamp? I'd like a good understanding of this because there's always a chance {26} might one day change to {42} or whatever and I'd like to handle that properly. Any ideas?
Glaucus is offline   Reply With Quote
Old 1st August 2013, 16:48   #5
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,821
26 is the universally recognized CSIDL for AppData

I doubt that will ever change

The full SpecialFolderPath list can be found here:
http://wiki.tcl.tk/17492

Note that you can specify a direct path, eg.
inidir=X:\Winamp\Settings
or whatever

You can also type %appdata%\winamp into the Explorer address bar or Start->Run and hit Enter.
Or to go to the default folder where main.dat is stored = %appdata%\winamp\plugins\ml
DJ Egg is offline   Reply With Quote
Old 1st August 2013, 19:12   #6
Glaucus
Junior Member
 
Join Date: Jun 2013
Posts: 3
Ok, cool. So I should interpret anything between the curly braces as a CSIDL value. Got it. Thanks!
Glaucus is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump