putty-color-themes icon indicating copy to clipboard operation
putty-color-themes copied to clipboard

It doesn't work

Open tyrion9 opened this issue 7 years ago • 6 comments

I run Windows 10 build April 2018,

I do exactly the same the instruction, but it doesn't work.

tyrion9 avatar Jun 08 '18 03:06 tyrion9

@tyrion9 Which themes did you talk about and what is your putty version? I have tried most of them. It works quite fine. I use PuTTY Release 0.70.

ceritandogan avatar Jun 25 '18 12:06 ceritandogan

I had issues with the instructions with regard to the .js file. My machine didn't know what to run this script with so instead I ran it in command prompt like this:

Cscript.exe "C:\Users\Admin\Downloads\putty-color-themes-master\_puttycolor.js" "C:\Users\Admin\Downloads\putty-color-t
hemes-master\44. Thayer.reg"

There might be an easier way than what I did but it worked for me.

UNiXMIT avatar Jun 26 '18 10:06 UNiXMIT

Yes, _puttycolor.js is written on the JScript language embedded in Windows, it's not the JavaScript. By default js-files are associated with JScript in Windows but if you have ever installed any good text-editor you probably have js-files associated with JavaScript so _puttycolor.js does not work. I will add to instruction an alternative way of run.

AlexAkulov avatar Jun 26 '18 10:06 AlexAkulov

Hi there, I followed the instructions but it didn't work. I didn't drag'n drop the .reg file into the .js file (since Windows doesn't let do it) but I executed cscript.exe command as you may see below: image (It says: Runtime Exception error. File not found)

[SOLVED]

I commented this line: //var FilePath = args.item(0); and it was replaced by this one: var FilePath = 'C:\\Users\\...\\Downloads\\putty-color-themes-master\\putty-color-themes-master\\13. Grass.reg';

IT WORKS!

THANKS FOR YOUR EFFORT AND TIME! ;)

abelardolg avatar Nov 16 '18 12:11 abelardolg

To make it easier on yourself just open up a command prompt and navigate to the folder containing the .js and .reg file, then run the command with local paths: cscript _puttycolor.js "36. Seafoam Pastel.reg"

ysichrisdag avatar Nov 10 '20 17:11 ysichrisdag

To make it easier on yourself just open up a command prompt and navigate to the folder containing the .js and .reg file, then run the command with local paths: cscript _puttycolor.js "36. Seafoam Pastel.reg"

This method is the easiest. Still works as of 2023.

RoninUTA avatar Apr 04 '23 16:04 RoninUTA