Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Folder creation during copy

  1. #1

    Default Folder creation during copy

    I thought this was supposed to create the \signed folder but instead
    it created a file named "signed"

    The variables used do not include any wildcards.

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS
    Attached Images Attached Images  

  2. #2

    Default Re: Folder creation during copy

    Hi Lee,

    > I thought this was supposed to create the \signed folder but instead
    > it created a file named "signed"
    >
    > The variables used do not include any wildcards.

    Don't know if it's the same issue, but I've found that sometimes windows
    thinks "\path" is a file unless it ends with a backslash "\path"

    I ran into this recently as we went through every place where filedialog
    was used to set predefined paths to point to. \path and \path\ may not
    be the same. And you CAN have a file named "path" with no extension,
    it's perfectly legal in windoweeze.

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

  3. #3

    Default Re: Folder creation during copy

    Arnor,

    > Don't know if it's the same issue, but I've found that sometimes windows
    > thinks "\path" is a file unless it ends with a backslash "\path"

    Tried it with a backslash as well as a backslash and surrounding
    quotes, it still fails to create the folder which, if I'm
    understanding the docs, it should.

    Even with a backslash and surrounding quotes...
    > Copying... C:\_DEV\- Clarion 11\PNet\11.0\Src\PNetIMB110.dll to "C:\_DEV\- Clarion 11\PNet\11.0\Src\Signed"

    Without the trailing backslash it creates a file, with it there still
    is no folder created for the copy process.

    It's been in my scripts for years without the trailing backslash.

    This is new behavior.

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

  4. #4

    Default Re: Folder creation during copy

    > Even with a backslash and surrounding quotes...
    > > Copying... C:\_DEV\- Clarion 11\PNet\11.0\Src\PNetIMB110.dll to "C:\_DEV\- Clarion 11\PNet\11.0\Src\Signed"

    Oops, forgot the screen capture...

    Lee White
    Attached Images Attached Images  

  5. #5

    Default Re: Folder creation during copy

    > It's been in my scripts for years without the trailing backslash.

    Of course adding a "Create Folder" prior to the COPY works but I've
    not needed that before. I'm just say'n!<g>

    Lee White
    Attached Images Attached Images  

  6. #6

    Default Re: Folder creation during copy

    > Of course adding a "Create Folder" prior to the COPY works but I've
    > not needed that before. I'm just say'n!<g>

    After creating and testing an empty script in the previous general
    release of SB it would appear that somehow I manually created the
    target folder before compiling the script although I don't remember
    doing it.... what's my name?!

    Oh, yeah, it's right here...

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

  7. #7

    Default Re: Folder creation during copy

    > I thought this was supposed to create the \signed folder but instead
    > it created a file named "signed"

    Never mind, Friedrich, my mistake but fix this anyway, ok?!<g>


    Although the "Preprocessor Create Folder" does seem to have changed
    behavior. In the previous release it does not require a trailing
    backslash but in the latest pre-release it does.

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

  8. #8

    Default Re: Folder creation during copy

    Hi Lee,

    > Although the "Preprocessor Create Folder" does seem to have changed
    > behavior. In the previous release it does not require a trailing
    > backslash but in the latest pre-release it does.

    Hmmm, I have checked my development history and the source codes and nothing
    changed in this compiler area.

    Friedrich

  9. #9

    Default Re: Folder creation during copy

    >> I thought this was supposed to create the \signed folder but instead
    >> it created a file named "signed"
    >
    > Never mind, Friedrich, my mistake but fix this anyway, ok?!<g>

    IMO, it's the correct behavior.

    You instructed the copy preprocessor to copy file
    "c:\folder\oldfilename.exe" to "c:\folder\newfilename" (without an
    extension). This is valid, IMO. Or am I wrong (too much coffee or not
    quite enough <g>)?

    Friedrich

  10. #10

    Default Re: Folder creation during copy

    Friedrich,

    > Or am I wrong (too much coffee or not quite enough <g>)?

    No. On the other hand I obviously should have stayed UNDER that rock I
    woke up under yesterday... coffee or not!!!!<g>

    I blame it on the frustrations of having to rebuild all of my SB
    scripts due to the loss of my system a while back and nothing being
    exactly where it was AND my damn blurry vision that still has a long
    way to go to get back to normal... DANG IT!!!!

    Best just to ignore me for a while... where's that rock????<g>

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •