Re: Scripts and soft links.... Problem identified and fixed, sort of.

From: .... (e56c3678_at_adelphia.net)
Date: 04/17/05


Date: Sun, 17 Apr 2005 17:55:46 -0400

This morning, I finally discovered the problem, and got the script working.

As it turns out, for some reason, "\r" was being appended to the end of path
in my mkdir commands, causing my whole directory structure to be wrong. (ln
was not finding the path, since it was created wrong.)

I'm guessing that somewhere in the process, the first script (which
generates the second, much longer script) was adding \r to the end of the
lines containing mkdir commands; no clue why, but I've bypassed to problem.

I removed the mkdir lines from the scripts, created the dirctory structure,
and made a COPY of the empty tree of folders, which I can archive using
minimal space. The script runs the way it should now, and populates the
empty folders (copied from the "archive" tree) with the appropriate links.

Many thanks to those who offered help--especially since the *REAL* problem
was not where the problem appeared to be.

"...." wrote in message news:r7udnYVz6_BNNvzfRVn-jw@adelphia.com...
> Okay, gang. I need some help here, and I'm rapidly getting frustrated.
>
...
> WHAT I WANT TO DO:
>
> Create a link, /<path1>/LinkName --- which points to a file,
> /<path2>/FileName --- in a script.
>
> LinkName and FileName are not necessarily the same name.
>
> Neatness and length are unimportant to me; I can write a program to do the
> duplication and "fill-in-the-blank" to generate the final script. I JUST
> WANT IT TO WORK!!!
>
> If anybody knows a way to do this, PLEASE HELP!!!
>
> Thanks!
>
>



Relevant Pages

  • Re: Scripts and soft links.... Problem identified and fixed, sort of.
    ... This morning, I finally discovered the problem, and got the script working. ... lines containing mkdir commands; no clue why, ... and made a COPY of the empty tree of folders, ... empty folders with the appropriate links. ...
    (alt.os.linux)
  • Re: Scripts and soft links.... Problem identified and fixed, sort of.
    ... > This morning, I finally discovered the problem, and got the script working. ... causing my whole directory structure to be wrong. ... > lines containing mkdir commands; no clue why, ... Everything in moderation -- including moderation ...
    (alt.linux)
  • Re: Scripts and soft links.... Problem identified and fixed, sort of.
    ... > This morning, I finally discovered the problem, and got the script working. ... causing my whole directory structure to be wrong. ... > lines containing mkdir commands; no clue why, ... Everything in moderation -- including moderation ...
    (alt.os.linux)
  • Re: Eliminate prompt
    ... Wrote the first requests before I experienced trying to delete multiple ... Automatic search for empty folders on D:\ when script is launched ... Answer yes, all folders deleted, directly followed by the prompt ...
    (microsoft.public.scripting.vbscript)
  • Re: Delete files older than X days old.
    ... delete the empty folders from what I can tell. ... > | have found a script that will delete the files but I am don't how to ... > | Sub SelectFiles ...
    (microsoft.public.win2000.file_system)