User Profile

Collapse

Profile Sidebar

Collapse
viktorijakup
viktorijakup
Last Activity: Nov 9 '09, 04:09 PM
Joined: Sep 3 '08
Location: Europe
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • viktorijakup
    started a topic insert text
    in Perl

    insert text

    This sctipt work with \insert{aaa.tex } but dont work with \insert aaa.tex

    What I must do ?!


    Code:
    while(/^\\insert\{(.*?)(\.tex)?\}/){
          $pries=$`."\n";
          $nekeisk=$&;
          $vardas=$1;
          $po=$';
          $failiukas=$1.".tex";
             
          if(-e "$dir/$failiukas"){
                                   open (IN2,"<$failiukas")
    ...
    See more | Go to post

  • viktorijakup
    replied to How to open folder ?!
    in Perl
    Hi !!!

    Thank you for answer !!!

    Code:
         1. system("start $to_dir"); # this will open folder in win explorer
    I need the same opening folder in "Far manager".

    :)


    Regards !!!

    Viki...
    See more | Go to post

    Leave a comment:


  • viktorijakup
    started a topic How to open folder ?!
    in Perl

    How to open folder ?!

    Hi !!!

    This script must open folder, and I must view empty opened folder...!!!
    I work in "Far manager".

    Now this script only create folder...

    Code:
    @rem = '--*-Perl-*--
    @echo off
    if "%OS%" == "Windows_NT" goto WinNT
    perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
    goto endofperl
    :WinNT
    perl -x -S %0 %*
    if
    ...
    See more | Go to post

  • viktorijakup
    replied to File name with "interval"
    in Perl
    Hi !!!

    But when I call script in this manner:

    Code:
    script.bat ''file with spaces.txt''
    My script work perfect...

    V....
    See more | Go to post

    Leave a comment:


  • viktorijakup
    replied to File name with "interval"
    in Perl
    Hi !!!

    Now i get mistake:

    Code:
    can't copy file: No such file or directory at D:\MMC1.bat line 21.
    V....
    See more | Go to post

    Leave a comment:


  • viktorijakup
    started a topic File name with "interval"
    in Perl

    File name with "interval"

    Hi !!!

    Code:
    @rem = '--*-Perl-*--
    @echo off
    if "%OS%" == "Windows_NT" goto WinNT
    perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
    goto endofperl
    :WinNT
    perl -x -S %0 %*
    if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
    if %errorlevel% == 9009 echo You do not have Perl in your PATH.
    if errorlevel 1 goto script_failed_so_exit_with_non_zero_val
    ...
    See more | Go to post

  • viktorijakup
    replied to How to send files ?!
    in Perl
    Hi !!!

    My method of selecting files is simple.

    I open folder, select files with "Panel control commands: Ins or Shift + cursor keys" and run script.

    Viki
    See more | Go to post

    Leave a comment:


  • viktorijakup
    started a topic How to send files ?!
    in Perl

    How to send files ?!

    Hi !!!

    I have script, which sends file to current directory, but script sends 1 file in 1 runing script.

    I need script, which sends several file, (I select and mark files myself) in 1 runing script.

    What I must add to this script.

    Code:
    #!/usr/bin/perl
    use warnings;
    use strict;
    use File::Path;
    use Cwd;
    use File::Copy;
    use File::Spec::Functions;
    ...
    See more | Go to post

  • viktorijakup
    replied to How to sent file ?!
    in Perl
    Hello !!!

    Thank you for correction of my script. This script runs perfectly,
    but in this script i must direct path. I would like run script in all
    directoties and don't rewrite path in script every time.

    I have a lof of files in different directories:
    Examples:
    D:\conv\ESSD\YJ CIS\YJCIS14136\ TOC.doc;
    D:\conv\ESNL\AP NUM\APNUM2185\v vvv.pdf;
    D:\conv\ESME\BU LSCI\BULSCI2303 \rrr.tex......
    See more | Go to post

    Leave a comment:


  • viktorijakup
    started a topic How to sent file ?!
    in Perl

    How to sent file ?!

    Hello !!!

    My directory D:\conv\ESSD\YJ CIS\YJCIS14183\ bbb.doc

    I must send to X:\sgml_db\ESSD \YJCIS\YJCIS141 83\
    directory and rename bbb.doc to MMC1.doc.
    If X:\sgml_db\...\ ....\YJCIS14183 \ don't exist, i must create it.

    "X:\sgml_db \" constant directory.

    My script must choose path itself !
    What I must add to this script !!!
    Code:
    use strict;
    use
    ...
    See more | Go to post
    Last edited by numberwhun; Sep 3 '08, 03:06 PM. Reason: Please use code tags
No activity results to display
Show More
Working...