|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ![]() |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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.
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > 2 questions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|