Search found 25 matches

by netaware
Wed Sep 10, 2025 2:21 pm
Forum: Switch
Topic: Assemble jobs using beginning and end of file names
Replies: 1
Views: 2076

Assemble jobs using beginning and end of file names

Hello, I want to assemble jobs, using single-line text with variables defined. The filenames are very long, about 40 characters. I would like to use a beginning segment and an end segment to match two files. Can this be done? I was thinking something like this: [Job.NameProper:Segment="1,23&quo...
by netaware
Tue Aug 05, 2025 6:34 pm
Forum: Switch
Topic: Execute command and exit codes
Replies: 1
Views: 3548

Execute command and exit codes

I am using the Execute command app to run a Powershell script. This works fine. But the trouble I am having is when the command fails and the exit code is 1, I would like the job sent to the problem jobs folder, but they are not going there. I see a message in the web portal. Currently I am testing ...
by netaware
Tue Aug 05, 2025 5:04 pm
Forum: Switch
Topic: Rename file based on contents
Replies: 9
Views: 10714

Re: Rename file based on contents

So i just ended up writing a script to append any dup filenames with a incremental number

Thanks for your help
by netaware
Tue Jul 08, 2025 1:21 pm
Forum: Switch
Topic: Rename file based on contents
Replies: 9
Views: 10714

Re: Rename file based on contents

Hello, Sorry if I confused you so let me try to explain. I need to run a few hundred files. The desired output i am expecting is a job folder with two files, one from Folder 1 and 1 from Folder 2. This flow will comparing a before file, ie Folder 1, and an after file, ie Folder 2. The files in eithe...
by netaware
Mon Jul 07, 2025 8:37 pm
Forum: Switch
Topic: Rename file based on contents
Replies: 9
Views: 10714

Re: Rename file based on contents

Thanks but I think I maybe explained my problem wrong. I am looking to assemble a job from 2 different incoming folders, Folder 1 and Folder 2. I assemble the job folder with 2 files, one from each incoming folder, based on a segment of the name, 1-23 positions. This works fine except for most files...
by netaware
Wed Jul 02, 2025 7:07 pm
Forum: Switch
Topic: Rename file based on contents
Replies: 9
Views: 10714

Rename file based on contents

Hello,
Is it possible for Switch to rename a text file or add a suffix/prefix based on its size or contents?

Or do I need to write a script?

Thanks.
by netaware
Fri Jun 27, 2025 4:52 pm
Forum: Flows
Topic: Executing Windows Batch file (.bat)
Replies: 9
Views: 4600

Re: Executing Windows Batch file (.bat)

Hello, I got it working. Ended up using the app "Create File From Template" and built my batch file with it. First I make a copy of the job folder, then run the batch file, it send output to the BC4_temp folder. The "Run Command" sends the job folder on to "Folder 12", ...
by netaware
Tue Jun 17, 2025 4:04 pm
Forum: Flows
Topic: Executing Windows Batch file (.bat)
Replies: 9
Views: 4600

Re: Executing Windows Batch file (.bat)

Yes the order is important because you have to compare the original to the newer version of the file. But I did change things with the RUN command. I am trying to run the commandline without a batch file and had some success. This is the what i am doing with the RUN command: "C:\Program Files\B...
by netaware
Tue Jun 17, 2025 2:07 pm
Forum: Flows
Topic: Executing Windows Batch file (.bat)
Replies: 9
Views: 4600

Re: Executing Windows Batch file (.bat)

Hi and thank you for your help! This is my flow. I am creating a .bat for each job using the "Create file from template" app and private data and placing that .bat in the job folder Flow1.png Below is the .bat file that is needed to run Flow2.png What i am trying to do is use Beyond Compar...
by netaware
Wed Jun 11, 2025 8:15 pm
Forum: Flows
Topic: Executing Windows Batch file (.bat)
Replies: 9
Views: 4600

Executing Windows Batch file (.bat)

I have a flow that is assembling a job folder consisting of 2 files and building a Windows batch file (.bat) to run from within the job folder. I am able to get everything together, but I am having trouble running the batch file. The batch file runs from the command prompt perfectly. I am using the ...
by netaware
Wed Jun 11, 2025 7:35 pm
Forum: Flows
Topic: Assemble jobs into sub-folders
Replies: 2
Views: 2925

Re: Assemble jobs into sub-folders

Thank you for your help !
by netaware
Thu Jun 05, 2025 8:49 pm
Forum: Flows
Topic: Assemble jobs into sub-folders
Replies: 2
Views: 2925

Assemble jobs into sub-folders

Hello, I have to create a flow that will compare 2 text files with BC4. They have slightly different names. I want to assemble the job with one file in a BEFORE directory and one file in an AFTER directory. Then I can run a script to compare them. I do not want to rename the files because I want the...
by netaware
Thu May 08, 2025 2:44 pm
Forum: Flows
Topic: Wait until job folder is empty flow
Replies: 14
Views: 56092

Re: Wait until job folder is empty flow

Wow! looks great. Thanks for trying this out!

Let me know when it is complete and/or available in the appstore.
by netaware
Wed May 07, 2025 8:24 pm
Forum: Flows
Topic: Wait until job folder is empty flow
Replies: 14
Views: 56092

Re: Wait until job folder is empty flow

Sorry it took me so long to get back to you on this. This is what I was looking for! But I could ask for one more thing? Could I get filenames and dates in the log file? My reason is that my flow sometimes creates problem jobs, not frequently, which I have send me an email. However, when a new user,...
by netaware
Fri Apr 04, 2025 2:03 pm
Forum: Flows
Topic: Wait until job folder is empty flow
Replies: 14
Views: 56092

Re: Wait until job folder is empty flow

Wow! thanks for the advice! it looks harder to do then i realized.

i am going to try these and see how they work.

Thank you again :)