Windows

Having a problem? Check here first

Frequently encountered problems may have an FAQ available.

https://community.activestate.com/taxonomy/term/651

Multiple versions of Go

Question: 

Can I have ActiveGo and another distribution of Go installed together?

Answer: 

The ActiveGo-beta will set GOROOT, GOPATH, and PATH variables. The Golang distribution will also set GOROOT and PATH.

-ActiveGo will always be the default version of Go if both are on the system due to the ways both Go versions set up PATH. Neither ActiveGo nor Golang Go will remove the other distribution from PATH.

-Any value in GOROOT will be overwritten by both versions of Go when they install. The last version to install will be set up as the root. If you remove a version of Go, you will need to re-install/repair the other one to ensure that GOROOT is correct before you start using it.

-GOPATH is your personal workspace. Your workspace should be usable with either version of Go.

PerlApp and environment variables

We have an executable that we created with PerlApp that can be run from a command shell or as an fast-cgi script from a web server (in our case, Apache 2.4 using mod_fcgid). The executable contains a few environment variables specified on the command line to PerlApp using the --env argument. When we run the generated executable from the command line, the specified variables are present as expected. When run from Apache, however, the variables are not included in the environment.

Where to start with compiling an exe???

Hello

I am trying to create an exe from a perl script.

ALL of the instructions give you the code EX: perlapp myscript.pl --add IO::Socket --add XML::Parser::Expat

but where do I run this?? From the CMD prompt.

Windows scripting host broken again in 5.22 and 5.24 updates

Once again, Windows scripting host integration is broken in the latest 5.22 and 5.24 releases. This occurred previously in version 5.20.1.2000, and was fixed in 5.20.2.2001. See

https://bugs.activestate.com/show_bug.cgi?id=106390#c1

Can anyone look into this?

How to use Encode::Detective?

I am trying to use Encode::Detective to determine the encoding of cue sheets. Here is my code:

use strict;
use warnings;
use Encode;
use Encode::Detective 'detect';
require Win32::LongPath;

my $fh;

# Read in raw mode and attempt to detect the encoding.
Win32::LongPath::openL(\$fh, '<', $ARGV[0]) or die $!;
binmode($fh);
local $/ = undef;
my $teststring = <$fh>;
my $encoding = Encode::Detective::detect($teststring);
printf("Detected encoding %s\n", $encoding->name);

How to Get Perl to Automatically Look in Specific Directories for Scripts?

I have ActiveState Perl installed on a Windows machine.

Now, suppose I have scripts, including one called "SomeScript.pl", in this directory:

"C:\Example\Foo\Bar\"

How do I configure Perl to automatically look in that directory for scripts when it is passed a script path?

For example, from the command line, I can run...:

perl C:\Example\Foo\Bar\SomeScript.pl

...just fine.

But the following...:

perl SomeScript.pl

Trojan.Dropper.Heur.gen / W32.eHeur.Dropper in ActivePerl-5.24.0.2400-MSWin32-x64-300558.exe ?

The file downloaded from https://downloads.activestate.com/ActivePerl/releases/5.24.0.2400/Active... has SHA256 of 9e6ab2bb1335372cab06ef311cbaa18fe97c96f9dd3d5c8413bc864446489b92.

https://www.virustotal.com/en/file/9e6ab2bb1335372cab06ef311cbaa18fe97c9... says "W32.eHeur.Dropper" detected by Bkav

https://www.metadefender.com/#!/results/file/c869301df9424b02aa49ce15d7bce692/regular/analysis says "Trojan.Dropper.Heur.gen" is detected by Baidu.

Is it correct or false positive?

How to open files from TCL script with the same programs as done from Windows Explorer ?

Hello everyone,

I have a list of files of different types in a script (docx, jpg, pdf, etc) and want to invoke them by double-clicking on them, just as I do from windows explorer - with the same programs as it is done there(e.g., .docs with MS-Word, pdf with Adobe Acrobat Reader, etc).

My question - how can I pass the information from Windows to my TCL script with which program to open each file type?

Thanks,

Question re opening files from TCL script with the same programs as done from Windows Explorer

Hello everyone,

I have a list of files of different types in a script (docx, jpg, pdf, etc) and want to invoke them by double-clicking on them, just as I do from windows explorer - with the same programs as it is done there(e.g., .docs with MS-Word, pdf with Adobe Acrobat Reader, etc).

My question - how can I pass the information from Windows to my TCL script with which program to open each file type?

Thanks,