Perl, WMI remote process

2004-04-28 Thread Saadat Saeed
observe the code way below I need to apply these patches on my remote machines by starting remote processes on my client machines. Now or i do $objWMIService->Create("c\:\\temp\\MS04-012\.exe \/passive \/norestart") or die("die die die"); it outputs as die die die why? and how do I get the

RE: Win32::OLE 7 Excel

2004-03-11 Thread Saadat Saeed
Hello, At the bottom is my is my entire code. Ofcourse all it does is get data out of a Lotus Notes server and dump it into excel. If you see the last lines I want to change the column width of a column in Excel. and that doesn't happen! Regards Saadat Saeed use strict; use Win32

Re: Win32::OLE 7 Excel

2004-03-10 Thread Saadat Saeed
my $r = $Sheet->Columns($Range), ColumnWidth > => 1); > > > > > > > Saadat Saeed <[EMAIL PROTECTED]> > 03/11/2004 11:55 AM > > To > [EMAIL PROTECTED] > cc > > Subject > Win32::OLE 7 Excel > > > > > > > Now Using Win32::OLE I co

Win32::OLE 7 Excel

2004-03-10 Thread Saadat Saeed
Now Using Win32::OLE I could input Data into an Excel sheet using the perl docs by ActiveState. However now I also want to format Here is my code snippet $Range = $Sheet->Range("E1"); with (my $r = $Sheet->Columns($Range), ColumnWidth => 1); Very simple eh? Any reason why it would not wo

Conditional formatting in Excel

2004-03-09 Thread Saadat Saeed
Okay - why doesn't conditional formatting work? Are my OLE statements correct - or is this more of an Excel issue??? (Over here I am extracting some data from Lotus Notes and dumping it into Excel --- all works fine except for the conditional formatting) use strict; use Win32::OLE; my $fp; my $i;

WinNT perl scripts - adding modules on all machines

2004-01-27 Thread Saadat Saeed
Just a question or doubt I had. Now using activestate's activeperl if I deploy it on all machines on my network. And I have certain scripts for those machines. If I release a new script that depends on a perl module not on the activeperl distribution by default how can I distrubute the modu

netadmin & change password

2004-01-24 Thread Saadat Saeed
Hello, I have been reading about the change password function in NetAdmin (Win32). Now it says I need to input the old password. What is I am in the domain admin group and I do not know the old password. Any thingy in perl that'll help me change local computer user accounts without needed to know

Re: Re: Re: Sub not working as it should

2004-01-21 Thread Saadat Saeed
I am sorry I am migrating over to perl (love the built in debugger) --- Saadat Saeed <[EMAIL PROTECTED]> wrote: > Thanks for the quick reponse - looks like I confuse > my > vbscript skills a bit... I am new to perl and am > migrating over to vbscript! > > Regards > &

Re: Re: Sub not working as it should

2004-01-21 Thread Saadat Saeed
Thanks for the quick reponse - looks like I confuse my vbscript skills a bit... I am new to perl and am migrating over to vbscript! Regards --- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Jan 21, Saadat Saeed said: > > > opendir(DIR,"$line\\c\

Sub not working as it should

2004-01-21 Thread Saadat Saeed
#!C:/Perl/bin/perl.exe #use IO::File; $file = "comp.lst"; $new = "ee.lst"; open (FH, "$file") or die "Cannot open file $file $!"; open(NEW, ">> $new") or die "can't open $new: $!"; while($line = ) { chomp $line; opendir(DIR,"$line\\c\$\\Docume~12") or errornos($lin

taking my vbscript to perl

2004-01-04 Thread Saadat Saeed
Hello, now I am a newbie to perl & would like to migrate my existing knowledge... Would anypone give me a crash course here... how would my following short vbscript correspond in perl. Set objShell = CreateObject ("Shell.Application") Set objFSO = CreateObject("Scripting.FileSystemObject") st

Reading writing to INI files

2003-08-24 Thread Saadat Saeed
Hello, Are there any modules available that can read/write to INI files. Thanks in advance Saadat Saeed __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED

RE: the File::Copy module

2003-08-19 Thread Saadat Saeed
Hello, Thanks for all your inputs now below you mentioned copy(qq(\\machine1\share\$file),qq(\\mahine2\share\$file)) sorry for my ignorance but what is qq also if I want to be smart and copy it to the c: drive of some user - assuming I am running the script from a Domain Admin login eg. \\

the File::Copy module

2003-08-19 Thread Saadat Saeed
I was just reading the File::Copy module. Now on a pure Win32 environment will this work copy("\\machine1\share\file1","\\machine2\share\file2"); Or should I do something else??? __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software

Win32 registry

2003-08-15 Thread Saadat Saeed
Hello, I am new to scripting (in general) and am an administrator of win32 based systems. I am deciding between Perl & a number of other scripting technologies to standardise upon. The only thing that'll convince me for now is the abiltity to read and modify registries of machines connected over