PDA

View Full Version : Folder creation during copy



NewsArchive
10-02-2018, 05:12 AM
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

NewsArchive
10-02-2018, 05:13 AM
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

NewsArchive
10-02-2018, 05:13 AM
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

NewsArchive
10-02-2018, 05:14 AM
> 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

NewsArchive
10-02-2018, 05:15 AM
> 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

NewsArchive
10-02-2018, 05:16 AM
> 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

NewsArchive
10-02-2018, 05:17 AM
> 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

NewsArchive
10-02-2018, 05:17 AM
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

NewsArchive
10-02-2018, 05:17 AM
>> 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

NewsArchive
10-03-2018, 02:27 AM
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

NewsArchive
10-04-2018, 07:36 AM
Lee,

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

No way <g>. I would never ignore you ;-)

Friedrich

NewsArchive
10-04-2018, 07:36 AM
Friedrich,

> > Best just to ignore me for a while... where's that rock????<g>
>
> No way <g>. I would never ignore you ;-)

On occasion I should ignore myself!<g>

Lee White

NewsArchive
10-04-2018, 07:38 AM
>> No way <g>. I would never ignore you ;-)
>
> On occasion I should ignore myself!<g>

<ROFL>

Friedrich