EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: "Edit DatFile" option in CMP  (Read 5685 times)

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 25.0 Firefox 25.0
    • View Profile
    • .
"Edit DatFile" option in CMP
« on: 10 December 2013, 02:25 »

Hi Roman,
A request.
At the moment I am cataloging a whole bunch of stuff, and it keeps growing & changing.
I don't want to keep making new Dir2Dat's for additions.
There must be an easier way !

CMP has the option to right click a dat a select "Edit DatFile".


And I know if you have DatWorkshop installed it will open. << zero Unicode support

I want to use NotePad++
How?
Thanks
Oxyandy
« Last Edit: 10 December 2013, 02:26 by oxyandy »
Logged


oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 25.0 Firefox 25.0
    • View Profile
    • .
Re: "Edit DatFile" option in CMP
« Reply #1 on: 10 December 2013, 02:58 »

OK, well here is how I do it now.
I have the MASTER dat open in Notepad++ (direct from CMP's dat folder)
I have another folder where I put the files I want to add called "Additions to Master"
The folder "Additions to Master" has already had a Dir2Dat made from it before.
So, as long as I don't exit CMP it will remember those settings/paths for me.

Those 'additions' go in the folder - I run Dir2Dat and outputted dat is saved as same name/location as before.
Additions.dat is already open in Notepad++
Notepad++ notices the changes and reloads 'Additions.dat'
I copy the contents of 'Additions.dat' and paste them onto the end of 'MASTER.DAT'
'Clear Cache' for 'MASTER.DAT' and quickly rebuild the additions into the master set..

This is why it would be useful to have "Edit DatFile" open with Notepad++

Yes, I know if I want a nicely alpha sorted dat, I just export from "Set Information" and CMP does that for me.

Thanks!
Oxyandy


Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 7.0 Safari 7.0
    • View Profile
Re: "Edit DatFile" option in CMP
« Reply #2 on: 10 December 2013, 05:22 »

you only have to tell Windows to open files with.dat extensions with notepad++......

.....or am Im missing something here......
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 25.0 Firefox 25.0
    • View Profile
    • .
Re: "Edit DatFile" option in CMP
« Reply #3 on: 10 December 2013, 08:24 »

CMP has the option in the >Profiler< Window to right click a profile a select "Edit DatFile".
Is that better worded ?

I removed DatWorkshop.
My associations for '.dat' already open with Notepad++
If I choose "Edit DatFile" it now does nothing.

Try when you are home ;)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 31.0.1650.63 Chrome 31.0.1650.63
    • View Profile
Re: "Edit DatFile" option in CMP
« Reply #4 on: 10 December 2013, 08:34 »

Well, "Edit datfile" simply calls a Windows Function with the given full path of the datfile...MS Windows cares about how (or better which program to use) to open it...
yes...it does not open...which is weird...I will double check at home....
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 25.0 Firefox 25.0
    • View Profile
    • .
Re: "Edit DatFile" option in CMP
« Reply #5 on: 10 December 2013, 09:36 »

CMP has the option to right click a dat a select "Edit DatFile".


So yes, just perfect if "Edit DatFile" uses the 'default open type' as set by windows.
Then we can all pick and choose.
Problem is it does seem hard coded to Datworkshop at present.
I await a new build :D
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 31.0.1650.63 Chrome 31.0.1650.63
    • View Profile
Re: "Edit DatFile" option in CMP
« Reply #6 on: 10 December 2013, 10:45 »

yeah it should already do use the default window open function....funnily nothing happens...don't know why at the moment...will check at home...

You -> "I await a new build"

Me -> "I await XMas gifts"


:O)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 31.0.1650.63 Chrome 31.0.1650.63
    • View Profile
Re: "Edit DatFile" option in CMP
« Reply #7 on: 10 December 2013, 17:06 »

well...actually I used "edit" as argument for the ShellExecute function call...which was definetly correct in the past...seems it does not work fine with Win7...anyway...I've changed it to "open"....

http://mamedev.emulab.it/clrmamepro/binaries/cmp20131210.rar
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 25.0 Firefox 25.0
    • View Profile
    • .
Re: "Edit DatFile" option in CMP
« Reply #8 on: 10 December 2013, 17:17 »

Quote
seems it does not work fine with Win7
Nor working in XP..
In fact, the way it has been for as long as I remember is that, if you had DatWorkshop installed..
"Edit DatFile" opened dat in DatWorkshop.. (Confirmed working that way today)

But, either way it doesn't matter, cause now "Edit DatFile" is much, much more useful  ;D
Thanks for your patience & effort again Roman..


Logged
Pages: [1]   Go Up
 

Page created in 0.114 seconds with 20 queries.