Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 12th, 2001, 12:04 PM
Sythe Sythe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 2 Sythe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
2 questions

Okay, two questions, 1 im sure is really easy.

1) I need to be able to find the location of the script from within the script, e.g. "usr/local/cgi-bin"

2) Does anyone know of anyway to write windows shortcut files using Perl or C/C++?

Thanks
Love Sythe
xxx

Reply With Quote
  #2  
Old October 13th, 2001, 09:36 AM
jdk's Avatar
jdk jdk is offline
phpkid ~~~~~~ :o)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,535 jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 11
Send a message via Yahoo to jdk
Okay, two questions, 1 im sure is really easy.

1) I need to be able to find the location of the script from within the script, e.g. "usr/local/cgi-bin"

ans. : use Cwd module.

$curr_dir = getcwd();
this is your current directory. ususally where your script is located.


2) Does anyone know of anyway to write windows shortcut files using Perl or C/C++?

check out win32:shortcut module. it would ease your task of creating shortcut.

jd
__________________
_____________________________
d.k.jariwala (JD)
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org

Reply With Quote
  #3  
Old October 18th, 2001, 07:10 AM
ishnid's Avatar
ishnid ishnid is offline
kill 9, $$;
Click here for more information.
 
Join Date: Sep 2001
Location: Dublin, Eire
Posts: 5,685 ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level)ishnid User rank is General 7th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 6 Days 15 h 47 m 2 sec
Reputation Power: 1465
If you're running the script as cgi, the $ENV{'SCRIPT_FILENAME'} or $ENV{'SCRIPT_NAME'} variables should be able to give you the path to the script.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > 2 questions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT