Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. timtrust123

    Getting the currently logged in NT user name

    Hi I'm looking for a way to get the NT username of the current user currently logged into the pc. Any idea which object can help me? Thanks Tim
  2. timtrust123

    Java JVM Verison Question

    Hi I'm new to java and have been writing a new java based application. No parts of the application require version 1.5 or greater. I have used version 1.5 and the application works well on my PC. However when I try to run it on a different pc that has version 1.42_09 I get an error message...
  3. timtrust123

    Perl Script full path

    Hi I am trying to get the full path of where the perl script is being run. For example, I am running a script called test.pl from the folder C:\Program Files\Perl_test\ By printing $0 in the script the folloing is displayed c:\Program~1\Perl_t~1\test.pl Any ideas on how i can get the full...
  4. timtrust123

    Interesting Maths (**) Question (-1.#IND)

    If i run the following code $number = (5.74462/100 - 1.0001); print $number ** 0.56,"\n"; I get the this printed "-1.#IND" However, if i run the following (change the $number to a number) $number = 0.9426538; print $number ** 0.56,"\n"; I get the correct answer printed (-0.26646) It...
  5. timtrust123

    Win32::OLE Problem (using Excel)

    Sorted Thanks Mike
  6. timtrust123

    Win32::OLE Problem (using Excel)

    I need to be able to turn off the automatic recalculation of a worksheet for updating. All goes well creating object etc but i'm unable to turn off the updating. Here is what I have so far. #Create and Excel object - No problem here $ex = Win32::OLE->new('Excel.Application', sub...
  7. timtrust123

    Win32::OLE - Turn off UpdateLinks when opening file.

    Thanks Chazoid... You have made my day ! Cheers Tim
  8. timtrust123

    Win32::OLE - Turn off UpdateLinks when opening file.

    Thanks for the reply. Howver as the \ is contained within '' this does not cause Perl a problem. When you open a XLS that contains links to other spreadsheets you get a message about updating the links containd in the spread sheet. This message current appears when I run my script. Someone who...
  9. timtrust123

    Win32::OLE - Turn off UpdateLinks when opening file.

    Hi I'm using Win32::OLE to open a Excel file that has links in it to different sheets. I would like to open the workbook without updating the links. VBA to do it looks like this Workbooks.Open FileName:="C:/file_name.xls", UpdateLinks :=0 i have tried the following without any success $book =...
  10. timtrust123

    To use | or || in an if statement

    Hi I'm a little confused as to the useage of either | or || should I use.... if ($ftp_file_size < $lower_size | $ftp_file_size > $upper_size ) or should i use if ($ftp_file_size < $lower_size || $ftp_file_size > $upper_size ) Whats the difference beteween the two? HELP appreciated
  11. timtrust123

    FTP TIMEOUT

    Hi I have written a Perl script that collects files from an ftp server. ###Extract### foreach $file (@get_files_list ) { $ftp_atlas->get ($file) } Sometimes the FTP server stops responding and the...
  12. timtrust123

    Win32::NetResource Question

    I have spent this sunny afternoon in London trying to get perl to link up to a network share (NT Server) and simply lits the files in the shares root directory. My investigation so far tells me that Net resource is the way to go and I even get a sucess when connecting. However i'm unable to...
  13. timtrust123

    Need a Tk expert

    Many thanks to Parkers. This is exactly what I wanted. I very much appreciate you taking time to read my posting and suggesting the solution. Many thanks....
  14. timtrust123

    Need a Tk expert

    I have the same problem updating a label Any ideas out there????
  15. timtrust123

    Need a Tk expert

    I would like the text on a button to update while a sub is running. I have linked the button text to a variable in the example below hoping it would update during the sub but it does not. How can I update the button text during the sub running. (i'm using win NT ) use Tk; $info = "start"; $mw =...
  16. timtrust123

    hide password help

    I have a simpe script that requires input from the user for the account name and password. I would like to be able to hide the password from being displayed on the screen. For example a password of "test" would display ****. Any ideas out there? Script print "please enter your user ID\n"...
  17. timtrust123

    Help with Sorting Arrays

    I have an array with 5 dimension the first 3 are string values and the forth is a numerical value. I need to sort this array by the first , second , third and finaly the fourth dimension. eg "FX","USD","NGOVT",2 "FX","USD","NGOVT",1 This should be coming out with the second row first then the...
  18. timtrust123

    Changing FTP Port

    Thanks to siberian for advice. Checked FTP server and all well there. My code should have looked like $ftp = Net::FTP->new($hostname ,Port => &quot;6667&quot;) All working correclty now. Thanks
  19. timtrust123

    Changing FTP Port

    Yes I know......Its beginner stuff but that what i am... I need to change that port address on a FTP connection but seem unable to do it. My code looks like $ftp = Net::FTP->new(hostname); $ftp-> port(6667); $ftp->login(username, password) ; Please please help

Part and Inventory Search

Back
Top