Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Strange file opening problem on WinNT

Reply
Thread Tools

Strange file opening problem on WinNT

 
 
Michael
Guest
Posts: n/a
 
      10-23-2003
I've tried hard to google an answer to this without success. I'm using
a perl script on Windows NT (Perl 5.8.0) that I've written (and
executed with no problem) on a Linux machine. The script uses the
command (acting on a plain text file):

$comm=join("","output\\",$data_type,"_",$date,".mp s");
open(INFILE,$comm);
.....
$close(INFILE);

The file is read no problem (and, in fact, writes out to another file
no problem). The strange thing about running it in Windows is that it
ALSO "executes" the file it reads: in the same sense as if I double
clicked on the file. So ".dat" files (associated with Excel here)
cause lots of excel windows to pop up if I read in lots of files. I
changed to an unassociated extension to avoid this and a pop-up
appears to tell me (for each and every file) that the file cannot be
executed as it is not associated with an application.

The program still works but makes a fast script very slow. If anyone
knows what's going on, could they let me know?

Michael
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation error: file exists in both in both 'c:\WINNT\Microsoft.NET\Framework\v2.0.50727 ABCL ASP .Net 0 05-29-2008 04:59 PM
File read error win9x winNT dosworldguy C Programming 8 09-24-2006 07:26 AM
Word file not opening from Adm -My recent docs but opening from file menu of Word Thaqalain Computer Support 0 06-30-2005 02:20 AM
winnt win32process.createProcess with stdout to file ? david.humpherys@gmail.com Python 6 03-04-2005 09:22 PM
pop ups in Winnt file Dominic Computer Support 5 07-08-2004 02:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57