Search found 7 matches

by braam
Tue Aug 28, 2012 8:21 am
Forum: LEGACY scripting
Topic: Call a webservice from switchscripter
Replies: 5
Views: 9019

Call a webservice from switchscripter

Hi Peter sure, here is a sample of a entire script...whats important to note though is that you have to create a ODBC connection to the MYSQL database first on the Switch server. then call that ODBC as your database, you cant call the MYSQL database directly. Thanks for the replies everyone, I will ...
by braam
Wed Jul 18, 2012 2:27 pm
Forum: LEGACY scripting
Topic: Call a webservice from switchscripter
Replies: 5
Views: 9019

Call a webservice from switchscripter

Hi I want to call a webservice from within Switch Scripter and just pass it a value...the jobname basically. I managed to be able to call StoredProcedures from within SwitchScripter, which works fantastic. Does anyone maybe have a sample code that has done this before from within SwitchScripter plea...
by braam
Wed Sep 28, 2011 9:44 am
Forum: LEGACY scripting
Topic: Javascript to remove certain contents of folder but copy subfolders as well
Replies: 0
Views: 5771

Javascript to remove certain contents of folder but copy subfolders as well

Hi I have a Switch Java script that I modified from other scripts that accepts a folder, look for a certain string in a file, and does not copy that file over with the rest of the files in the folder (I basically just want to delete this file from the folder, but as the filename always differs sligh...
by braam
Fri Sep 16, 2011 8:43 am
Forum: Flows
Topic: Execute command to execute command prompt command
Replies: 2
Views: 6361

Execute command to execute command prompt command

Hi Clive Brilliant, Thank you very much. What a awesome tool. So it does seem that calling cmd.exe directly from the Execute command tool does not work, but this works 100%. So my execute command now looks like this: command or path:c:PsExec.exe Arguments(single line text with variables): cmd /c rd ...
by braam
Wed Sep 14, 2011 1:56 pm
Forum: Flows
Topic: Execute command to execute command prompt command
Replies: 2
Views: 6361

Execute command to execute command prompt command

Hi I am trying to use the execute command to run a MS-Dos prompt command, but its not working...I get the error that it cant run command "XYZ"...in the error messages....but when I copy the error details and paste it in command prompt...it runs 100%. I am running windows 7 with powerswitch...
by braam
Thu Sep 01, 2011 7:41 am
Forum: LEGACY scripting
Topic: Execute Command with 7zip
Replies: 1
Views: 5230

Execute Command with 7zip

Managed to get it to work



In the end I I just used a switch variable instead of the %2 (strange as it is supposed to give exactly the same result), this works 100%, so my argument line now looks like this:



a %2 [Job.Path]*.* -pp2p100
by braam
Wed Aug 31, 2011 2:38 pm
Forum: LEGACY scripting
Topic: Execute Command with 7zip
Replies: 1
Views: 5230

Execute Command with 7zip

Hi I have a application that gives me a 7zip password protected file. I have to extract it, edit some files inside and then compress again exactly like it was. Everything is working fine, except when compressing the files again, I cant compress them to the root folder. let me explain. Say I have a f...