RE: UNC Path (hidden) in Variable With MKDIR, was (no subject)

2003-03-19 Thread Tim Straub
   
 [EMAIL PROTECTED] 
 .state.fl.us  
An 
 19.03.2003 13:20   [EMAIL PROTECTED],  
[EMAIL PROTECTED] 
ate.com
 Kopie 
   
 Thema 
RE: (no subject)   
   
   
   
   
   
   






Hi,

unfortunately the syntax have to be something like \\server\share
$\new_directory.
This script will get the values from an INI-file or by computing it during
an user creating process.

Maybe there is the possibility to use a regex - but I didn't get the dollar
sign out of the path.

Thanks,

Tim

Try server\\new\$

In perl you escape meta-characters with backslashes.  Not much fun when you
discover that Win32 just loves backslashes!

jpt

 -Original Message-
 From: Tim Straub [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 7:10 AM
 To: [EMAIL PROTECTED]
 Subject: (no subject)


 Hi list,

 is there any way to open a hidden UNC path with the mkdir statement
 given by a parameter.

 Let's say I run the script with the parameter

 \\server\new$

 the path will get truncated one time by the newline '\n' and
 the dollar
 sign will by cut off.

 Then putting it in the variable $x the statement

 mkdir( $x, 0777 );

 will fail!

 I would like to use the script as a subroutine which will get
 the path -
 this have to be done as \\server\\share\new_directory. So it is not
 possible to use an other syntax!

 Any suggestions???

 Thanks in advance

 Tim


 ___
 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: UNC Path (hidden) in Variable With MKDIR, was (no subject)

2003-03-19 Thread JamesTillman


 -Original Message-
 From: Tim Straub [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 7:42 AM
 To: [EMAIL PROTECTED]
 Subject: RE: UNC Path (hidden) in Variable With MKDIR, was 
 (no subject)

  Try server\\new\$
 
 unfortunately the syntax have to be something like \\server\share
 $\new_directory.
 This script will get the values from an INI-file or by 
 computing it during
 an user creating process.
 
 Maybe there is the possibility to use a regex - but I didn't 
 get the dollar
 sign out of the path.

Well, if you're reading the string from a file, then you won't have the
problems with the $ or the \n being recognized as escape characters.  I
guess I don't understand what your problem is.  Have you actually run code
that reads from an INI file?  Did it still produce the behavior you
described -- a carriage return in the string and the dollar sign missing?
If so, are you doing some sort of eval on that string?  If you are, then
you'll need to escape the backslashes and dollar signs yourself before doing
the eval.  If not, you shouldn't be experiencing a problem.

If you are able to provide the code in question, that would make it much
easier to help you.

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