go to post Hans-Peter Iten · Feb 14, 2019 How would you do that with PowerShell?:PS C:\InterSystems\Cache\bin> .\csession mycache -"U" user "##class(test.OsCall).inString(""""""abd"""""")"<INVALID ARGUMENT>>PS C:\InterSystems\Cache\bin>Combination of escape-characters doesn't work like these "##class.....(\`"abd\`")" or "##class....(`"abd`")"compared to CMD:C:\Users\me> .\csession myCache -"U" user "##class(test.OsCall).inString(""""""abd"""""")" //see Seans good answerArgument read: abd (this comes from my Caché-class, so this environment works properly)
go to post Hans-Peter Iten · Dec 17, 2018 Checking documentation for class %Net.Remote.Utility I find out that it is provided for internal use for Intersystems. So may I use this class in my personal routines without getting any bad surprise?
go to post Hans-Peter Iten · Oct 24, 2018 Instead of using $ZSEARCH you can use the query FileSet in class %File: ClassMethod getFiles(pDir As %String, pMask As %String){ set dir=##class(%File).NormalizeDirectory(pDir) set result=##class(%ResultSet).%New("%File:FileSet") do result.Execute(dir,pMask) while result.Next() { write !,result.GetDataByName("Name") }}
go to post Hans-Peter Iten · Nov 17, 2016 You can do this using Caché Object Script: S DBDIR="directory_of_database" S DBOBJ=##class(SYS.Database).%OpenId(DBDIR) S DBOBJ.ReadOnly=0 //switch to read/write mode S STA=DBOBJ.%Save() S DBOBJ.ReadOnly=1 //switch to read only mode S STA=DBOBJ.%Save()