RE: using a command which includes spaces in the system() functio n

2002-02-22 Thread Dean Theophilou

You could also use Progra~1 instead of Program Files.  However, the real
problem is that you're using Command.com rather than Cmd.exe.  Cmd.exe
understands long file names, so my suggestion is that you use that if you can.

Dean Theophilou


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Swartwood, Larry H
Sent: Friday, February 22, 2002 3:00 PM
To: [EMAIL PROTECTED]
Subject: RE: using a command which includes spaces in the system()
functio n



You could also use Win32::GetShortPathName() first. This is untested but I
have done used this approach before.

Example:
   $path = Win32::GetShortPathName('C:\Program Files\WinCVS\Examdiff.exe');
   system( $path);

Larry S.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: using a command which includes spaces in the system() functio n

2002-02-22 Thread Dean Theophilou

Hello:

Basically, you change the ComSpec system environment variable to
%SystemRoot%\system32\cmd.exe.  So, if your system root is C:\Windows, the
ComSpec variable would need to be changed to C:\Windows\system32\cmd.exe.

How you change a environment variable depends on which OS you're using.  I'm
using Windows 2k, so did this:

1. Right-click My Computer
2. Click Properties
3. Click the Advanced tab
4. Click Environment Variables
5. Select ComSpec in the System Variables section
6. Click Edit

Of course, you need to make sure that Cmd.exe is actually on your system before
you do this.  The same basic procedure is also used on NT.  How you get to the
environment variables is a little different.  However, it shouldn't be too hard
to figure out.  Let me know if you have any problems.


Dean



-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:30 PM
To: Dean Theophilou; [EMAIL PROTECTED]
Subject: RE: using a command which includes spaces in the system()
functio n


How do you specify which one to use through the
'system' call?

--- Dean Theophilou [EMAIL PROTECTED] wrote:
 You could also use Progra~1 instead of Program
 Files.  However, the real
 problem is that you're using Command.com rather
 than Cmd.exe.  Cmd.exe
 understands long file names, so my suggestion is
 that you use that if you can.

 Dean Theophilou


 -Original Message-
 From:
 [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]On
 Behalf Of
 Swartwood, Larry H
 Sent: Friday, February 22, 2002 3:00 PM
 To: [EMAIL PROTECTED]
 Subject: RE: using a command which includes spaces
 in the system()
 functio n



 You could also use Win32::GetShortPathName() first.
 This is untested but I
 have done used this approach before.

 Example:
$path = Win32::GetShortPathName('C:\Program
 Files\WinCVS\Examdiff.exe');
system( $path);

 Larry S.
 ___
 Perl-Win32-Users mailing list
 [EMAIL PROTECTED]
 To unsubscribe:
 http://listserv.ActiveState.com/mailman/mysubs

 ___
 Perl-Win32-Users mailing list
 [EMAIL PROTECTED]
 To unsubscribe:
http://listserv.ActiveState.com/mailman/mysubs


=

Jeffrey Hottle
nkuvu at yahoo dot com

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: Perl + win2k install problems

2001-12-11 Thread Dean Theophilou



Why do 
you need to install it from the command prompt? It's an MSI file. Go 
to http://www.activestate.com/Products/Download/Get.plex?id=ActivePerl
and 
download it again and then see what happens.

DeanTheophilou


  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  Susan WolakSent: Tuesday, December 11, 2001 10:50 
  AMTo: [EMAIL PROTECTED]Subject: 
  Perl + win2k install problems
  Hello,
  
  Our server that was running on NT, had O'reilly's 
  website pro version 1.0 and extensions for Frontpage98 on ithas 
  crashed.
  
  Our I.S. Dept. put in new hard drive, installed 
  win2k, IIS and now I need to install a version of PERL so my scripts will work 
  (again).
  
  When I downloaded PERL before, I got it to 
  install without a problem on this older machine and also on another one 
  running win2k with Lotus Notes' Domino's web server.
  
  However - I am having problems getting PERL to 
  install now on this rebuilt harddrive. I downloaded PERL 5.6.1 and tried 
  installing it through the command window like it said below to 
do:
  
  
  The installation wizard can also be accessed 
  by opening the command window and entering: c:\directory where the install file is located msiexec.exe/i install fileBut I'm having problems getting it to work.  There was an error with the MSIEXEC file?Any help would be appreciated.Thanks,Susan WolakLongmont[EMAIL PROTECTED]


RE: Permission woes

2001-12-11 Thread Dean Theophilou



Hello:

 Read pp. 88-94 of Win32 Perl 
Scripting--The Administrator's Handbook, by Dave Roth.Also, Dave 
Roth's2nd edition of Win32 Perl Programming--The Standard Extensions is, 
in my opinion, an absolutely necessary reference for Perl on Win32 
platforms.

Be 
that as it may, I don't know why Win32::Perms did not work for you, but perhaps 
you should check that the printer pathname does not end with a backslash. 
If you attempt to reference a printer, and its pathname ends in a backslash, 
then it won't work.


Dean 
Theophilou


-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Mark 
VeinotSent: Tuesday, December 11, 2001 11:18 AMTo: 
[EMAIL PROTECTED]Subject: Permission 
woes

  I need a way of determining what groups and users 
  have what permissions on a local printer. I tried Win32::Perms, but the 
  listing comes back empty when I know it's not. Any help?
  
  -Put the cat out? I didn't know it was 
  burning!
  
  Mark VeinotNetwork AdministratorLinux 
  Certified Professional
  
  


RE: An Index of Incivility in the Perl Community [Xpost]

2001-06-15 Thread Dean Theophilou

Very funny.  Although it won't be for another 20-50 years, the UNIX OS will
cease to exist as a widely-used OS.  This is not a bash against UNIX; it IS
a high-quality OS.  However, the elitism I have found among UNIX people is
tremendous!  Such elitism is one of the biggest (if not THE biggest) reason
that Apple got screwed, and it is exactly for the same reason that UNIX will
be screwed too.

For all of it's problems, Windows has a great look and feel; I can't tell
you how many times I've heard UNIX people whine about how much better a
command-line-based OS is.  But the fact of the matter is that command-lines
have their time and place, and it is NOT all the time and any place.
Frequently, using a GUI is a better and more efficient approach.

Nevertheless, there is one thing that I think nobody will disagree with: the
Windows OSs have made computers accessible to just about everyone...from a 5
year old to a 60+ year old...and the proliferation of computers in our
society has made my job all that much more in demand (and profitable).  So I
thank MS (or M$, if you prefer) and am very appreciative, in spite of
whether or not it is a real OS.


Dean Theophilou
Genisar


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Mark Folse
Sent: Monday, June 11, 2001 6:44 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: An Index of Incivility in the Perl Community [Xpost]


What? You don't have a Real Operating System? That's your problem! ; )

 my only
 wish is that perlmonks was a bit more friendly to those of us in the
 corporate
 world who have no choice but to use WinTel and not Linux.

 John

 -Original Message-
 From: Chris Pettit [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 09, 2001 9:18 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: An Index of Incivility in the Perl Community [Xpost]


 Greetings --
 Good research.
 In a similar thread I suggested that the Perl group have a list
 modeled
 after the Python[Tutor] list.
 They are remarkably kind to folks, and certainly, many folks are too
 lazy to
 look things up before posting.

 Folks like Matt on XML and DaveR on Win32 have done some remarkable
 efforts
 to organize informational web sites.  It seems a shame that with all
 the raw
 talent out there that a
 site with the structure of a SourceForge could not be put together to
 channel the learning effort for P(erl||ython),TCL, etc.

 ActiveState,CPAN,  Perldoc are certainly deserving of credit.  They
 have
 done a great deal to provide resources for the scripting community.

 I think the energies of the folks out there producing modules,
 bindings and
 languages are better served building code, not maintaining web sites
 and
 answering similar questions so often. I sent a note to
 [EMAIL PROTECTED]
 once and Guido himself responded.  Another thing, it is incredible
 how kind
 and seemingly humble some of these mega-giants-of-programming can be
 to mere
 lame mortals like myself.

 It would benefit all if a site structured like SourceForge, for lack
 of
 something better call it something like InfoForge or Opendox was to
 organize
 printable/searchable Faqs to answer these types of questions.
 The Perl documentation can be challenging to find things.
 ( no flashing banner ads/gifs allowed )

 I know a LOT of experienced programers that are intimidated by Perl.
 [4real]
 There is a lot of syntax things that seem to occur by magic like 
 @_.
 I pulled out a Perl book, $_ was covered on p.363-364.

 The Perl gang reminds me of name that tune...
 H*ll, I can write that code in three lines
 the seive of Erathosenes in ONE line, give me a break, i saw that
 one.
 from the command line no-less.  I love this stuff.

 Perhaps a Perl[Assist] group to organize it. How many times
 have people written to dbi-users on installing DBD::Oracle ???
 And they don't even have the Oracle client installed.

 Maybe, it's just circumstance, but it seems that interest in Perl is
 increasing.
 In the bookstores i've seen alot of people picking up Perl books
 lately.
 Twice in the last week I've suggested the Perl-DBI book.

 Often, when i can take the time to reply to posts, I will try to find
 a link
 and send it to people.  Folks that tell/hint at others to RTFM might
 be just
 as lazy as the person doing the posting !!!
 So, if we had a place to tell them where to go ;-0 , meaning a real
 link, it
 would help.
 An organized effort would help eliminate the inumerable dead links to
 info
 out there.
 As I stated earlier, a SourceForge like site would be helpful.
 Like:
 [FAQ] [PerlDoc] [Cookbook] [SampleCode] [Hints] [Links] [Books]
 [Whitepapers]

 And, have volunteers run each module or topic.
 If someone drops the ball others will likely volunteer to pick it up.
 Like wise if someone does a poor job, control could be transferred if
 complaints are sufficient.

 What if it would even lead to a real certification 

 And, if i was smarter, i could

RE: [An open complaint (was RE: An Index of Incivility in the Perl Com munity )] [more rant, please ignore]

2001-06-12 Thread Dean Theophilou

Hey Chris (Christine):

I think you got something there!  From now on I'm going to sign off as
Dina, and perhaps claim that the reason I haven't RTFM is because of
cramps. :)))  ROFL.


Dean (Dina) Theophilou
Genisar

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Chris Pettit
Sent: Monday, June 11, 2001 9:30 PM
To: [EMAIL PROTECTED]
Subject: RE: [An open complaint (was RE: An Index of Incivility in the
Perl Com munity )] [more rant, please ignore]


John --
You forgot to mention how the 'seemingly' young ladies can get the most
trite question answered with the finest of detail, patience and
consideration.
Well my new 'handle' is going to be Emma-Jean Monroe[FSU] or LinMing[UCLA],
no one will suspect I'm one of the Un-Showered, long-in-the-tooth
X-something engineering propeller heads. Ehh, real mean use Raid for
after-shave. What-me-shave?? I can't ever remember a post like, Look, you
stringy haired Bimbo, why don't you try RTFM. And, lose the hair spray,
you've been doing to too much Apocolyptica or what ???
clp

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 JOHN PETRI
 Sent: Monday, June 11, 2001 10:51 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [An open complaint (was RE: An Index of Incivility in the
 Perl Com munity )]


 For questions that are unworthy, just ignore the question.
 Need to toughen of that thin skin?  Participate in
 alt.politics. A week should do it if your a regular kind of
 guy. One day if you hate Jews, Homosexuals or belong to a
 local NAZI group.  If you are a rookie, say so, apologize
 (for what I don't know) and ask your question.  Some (said
 some folks) of these Perl guys have no life and sit on these
 lists all day. It's their alt.polictics and they dump here.
  If you are a rookie, say so, apologize, ask your question
 and then say you didn't understand the documentation.
 Wouldn't be much of a lie, since many don't. I don't.  Wall
 is one of the cutest writers out there - forever going on,
 much like this post, about this or that.  I swear there must
 be a pie recipe in there somewhere between his clever use
 of the language - something perl guys do.  They even write
 poety with it.  Now is that normal?  If you are a pro,
 change your name often so you can claim to be a rookie and go
 ahead and ask that question.  Just remember rookies, getting
 mashed by someone probably means he bald, humped backed (from
 programming all day) and doesn't  shower.  Well probably not.
  But it works for me.  Like pretending all the audience is in
 their shorts.  Oh, and if you get flamed, just ask the
 question again and ignor the humpback.  Someone else will
 answer it.  There are alot of good folks out their with good
 posture and sweet smelling (I assume - never smelled our Perl
 pro - but he does have thick glasses and doesn't mingle well.
  :-)  PS Gotta say I've been ignored but never trashed on
 this list. I've even written authors of various mods and they
 answer. Imaging that.  And when, months later, I see how
 tiresome that question must have been, I think their really
 nice, showered guys.[EMAIL PROTECTED] wrote: From: Lee
 Goddard [EMAIL PROTECTED] To:
 [EMAIL PROTECTED] Subject: RE: An
 Index of Incivility in the Perl Community Date: Mon, 11 Jun
 2001 11:49:29 +0100  FWIW  Mostly hogswash.  I learnt
 Perl from scratch without a book, and  got all the help I
 needed from mailing lists and Usenet.  Okay,  I didn't ask
 anyone to complete my scripts or explain what an  array is,
 but I'm not especially bright, just applied common sense. 
 The very high number of lazy people asking questions they
 could  themselves find answers to in the perldocs is a good
 enough reason  to either ignore them or reply RTFM - or
 better, Go To Learn.Perl.Org.  Okay, folks. I seem to have
 found my civility breaking point. Look, whether you like it
 or not we are always going to get those questions that lead
 one to spout out RTFM. I suggest, however, that we bite our
 tongue and answer the F'n question instead.  rant with
 malice I don't know how many questions I have personally
 answered because some poor newbie came to me with his tail
 between his legs because he was scolded by the so called Perl
 gurus. If this is the attitude that we as a community are
 going to promote then I suppose I should pack it in right
 now. I don't know why so many of us have this arrogant,
 holier than thou attitude. Quite frankly it ticks me off. I
 dumped a crap load of *unpaid* time and effort to promote
 open software and this community. I certainly did not want to
 foster the pathetically low RTFM attitude. What if everyone
 took your approach. The next time an experienced coder comes
 to me and asks what I deem a silly question I'll just respond
 with RTFSC (read the f'n source code). That ought to stop
 everyone's questions dead. Or how about RTFWAD (read the f'n
 Win32 API 

RE: An open complaint (was RE: An Index of Incivility in the Perl Community )

2001-06-12 Thread Dean Theophilou

Please!!  No Latin without an English translation.  Now I'm going to be
wondering about what that means all day!  :)

Dean (Dina) Theophilou
Genisar


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Paul Bo Peaslee
Sent: Tuesday, June 12, 2001 6:48 AM
To: [EMAIL PROTECTED]
Subject: Re: An open complaint (was RE: An Index of Incivility in the
Perl Community )


Right on, Dave!


--
Paul Bo Peaslee
Ne illegitimi carbunculi tibi in facie sint


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 11, 2001 8:19 PM
Subject: An open complaint (was RE: An Index of Incivility in the Perl
Community )


 From: Lee Goddard [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: An Index of Incivility in the Perl Community
 Date: Mon, 11 Jun 2001 11:49:29 +0100
 
 FWIW
 
 Mostly hogswash.  I learnt Perl from scratch without a book, and
 got all the help I needed from mailing lists and Usenet.  Okay,
 I didn't ask anyone to complete my scripts or explain what an
 array is, but I'm not especially bright, just applied common sense.
 
 The very high number of lazy people asking questions they could
 themselves find answers to in the perldocs is a good enough reason
 to either ignore them or reply RTFM - or better, Go To Learn.Perl.Org.

 Okay, folks. I seem to have found my civility breaking point. Look,
 whether you like it or not we are always going to get those questions that
 lead one to spout out RTFM. I suggest, however, that we bite our tongue
and
 answer the F'n question instead.

 rant with malice
 I don't know how many questions I have personally answered because some
poor
 newbie came to me with his tail between his legs because he was scolded by
 the so called Perl gurus. If this is the attitude that we as a community
are
 going to promote then I suppose I should pack it in right now.
 I don't know why so many of us have this arrogant, holier than thou
 attitude. Quite frankly it ticks me off. I dumped a crap load of *unpaid*
 time and effort to promote open software and this community. I certainly
did
 not want to foster the pathetically low RTFM attitude.
 What if everyone took your approach. The next time an experienced coder
 comes to me and asks what I deem a silly question I'll just respond with
 RTFSC (read the f'n source code). That ought to stop everyone's questions
 dead. Or how about RTFWAD (read the f'n Win32 API documentation)? Where do
 we draw the line.

 Ladies and gentlemen, I have better things to do with my time than to feed
 into a bunch of elitists. I do hope that we as a community decide to come
 back to basics and assist everyone, not just those who have read the
manual.
 And speaking of the manual...it is not designed for a newbie. The manual
 looks like it was hastily written with bad examples and the depth of a
 thimble. Unless you want to rewrite the documentation, don't assume a
newbie
 will understand it. I don't care if you RTFM and walked through fire and
 fought off alligators. Not everyone is like you. Got it?

 I do want to ask why so many of you are so adamant to say RTFM? Why does
it
 bother you so much? If you don't like the question, don't answer it. Quite
 simple, actually.

 Simply put, elitists suck. Let's change this attitude and become the
 language that EVERYONE uses.
 /rant with malice

 Forgive my $.02. But it is about time that we get a grip on this.

 Dave Roth
 http://www.roth.net/
 ___
 Perl-Win32-Users mailing list
 [EMAIL PROTECTED]
 http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Installing ActiveState Modules

2001-04-19 Thread Dean Theophilou

Hello:

Is there a fast way of installing ALL ActiveState modules in one shot,
rather than one-by-one via ppm?  Thanks.


Dean Theophilou
Genisar

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Assigning Share Permissions

2001-04-16 Thread Dean Theophilou

Hello:

Does anyone know which module allows you to assign share level (NOT
NTFS)permissions?  Will the Win32::NetResource module allow you to do this?
Thanks.


Dean Theophilou
Genisar

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Setting Home directories based on authenticating server.

2001-04-11 Thread Dean Theophilou

Hello:

Does anyone know how to set a user's home directory based on the server
which authenticated the user?  I know it can be done with a user's profile,
but I can't seem to find any documentation for doing the same with home
directories.  Any information would be appreciated.  Thanks.

Dean Theophilou
Genisar

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users