Question
· Mar 26, 2019

Network access on Windows Host file commands

Good morning

I'm probably overlooking something very basic, but I'm running on Win2016 with Cache  2016.2 - All the work I am doing is in INT routines, but I'm making some calls to the Host File system using $ZF(-1).

I have a few mapped Network drives that are mapped in Windows, typically these are locations where I want to back up some files.

My process is quite simple:

1. Read data

2. Zip data files using RAR

3. Create folder on Network drive

4. Move RAR files to new network share.

I've tried a few different commands:

S LOC="G:\RAN\Backup1\",CMD="MD "_LOC,X=$ZF(-1,CMD)

S LOC="\\data1\data\RAN\Backup1\",CMD="MD "_LOC,X=$ZF(-1,CMD)

I'm unsure if its a limitation of Cache to do this sort of thing, or if I should created a BAT file and then kick off a Windows call to run the BAT file.

Basically I just want to be able to create and move files to a Network drive (which is something I've never had to do before in Cache) and was surprised it just didnt work.

Any hints or tips gratefully received.  I should note that this is probably a Newbie question, but have been doing flavours of M for 29 years....so when someone tells me the obvious basic answer, I can slap my own wrists!

Discussion (6)1
Log in or sign up to continue