Jump to content

Writing from one sub directory to another


aa2zz6
 Share

Recommended Posts

I have a main folder that holds 2 sub directories. The main folder script calls scripts from sub folder. The sub folder with the scripts needs to write a log to the second sub folder that tracks the processes. I don't know how to get out of a sub directory folder and write in another

Global $sLogFile = @ScriptDir & '\Log Directory\Log Sheet.log'

If $CmdLine[0] = 1 Then $sLogFile = $CmdLine[1]

_FileWriteLog($sLogFile, "File Path: " & $FilePath & @CRLF)

 

Edited by aa2zz6
Link to comment
Share on other sites

I have a main folder that holds 2 sub directories. The main folder script calls scripts from sub folder. The sub folder with the scripts needs to write a log to the second sub folder that tracks the processes. 

 

Edited by aa2zz6
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...