SphereCommunity
SYSSPAWN / SYSCMD - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: SYSSPAWN / SYSCMD (/Thread-SYSSPAWN-SYSCMD)



SYSSPAWN / SYSCMD - Kanibal - 11-26-2016 11:17 AM

How to launch some program if there are spaces in a path?

This code works perfect:
Code:
local.spawn = <SYSSPAWN D:\path\my.exe>
And this not:
Code:
local.spawn <sysspawn D:\some path\my.exe>
local.spawn <sysspawn "D:\some path\my.exe">
local.spawn <sysspawn ""D:\some path\my.exe"">



RE: SYSSPAWN / SYSCMD - ShiryuX - 11-27-2016 05:11 AM

%20? +? No idea.


RE: SYSSPAWN / SYSCMD - Criminal - 11-28-2016 07:54 AM

You can do it with quotes:

local.spawn <sysspawn "D:\some path\my.exe">


RE: SYSSPAWN / SYSCMD - Kanibal - 11-28-2016 08:30 AM

(11-26-2016 11:17 AM)Kanibal Wrote:  How to launch some program if there are spaces in a path?
This code works perfect:
local.spawn = <SYSSPAWN D:\path\my.exe>
And this not:
local.spawn <sysspawn "D:\some path\my.exe">
Confused
(11-28-2016 07:54 AM)Criminal Wrote:  You can do it with quotes:
local.spawn <sysspawn "D:\some path\my.exe">



RE: SYSSPAWN / SYSCMD - ShiryuX - 11-29-2016 05:34 AM

He's already using quotes. Did you try using %20 as space?


RE: SYSSPAWN / SYSCMD - Kanibal - 11-29-2016 06:16 AM

(11-29-2016 05:34 AM)ShiryuX Wrote:  He's already using quotes. Did you try using %20 as space?

Yes


RE: SYSSPAWN / SYSCMD - darksun84 - 11-29-2016 06:38 AM

Looks like that syspawn accepts the DOS short names but i don't know if it's a good solution Tongue

PHP Code:
[FUNCTION testSysSpawn]
serv.log try to run running sphere server in folder named test blank space

local
.shortpath C:\Sphere\TESTBL~1\SphereSvr.exe
serv
.log Result <serv.sysspawn <local.shortpath>> 



RE: SYSSPAWN / SYSCMD - Kanibal - 11-29-2016 06:52 AM

(11-29-2016 06:38 AM)darksun84 Wrote:  Looks like that syspawn accepts the DOS short names but i don't know if it's a good solution Tongue

Yes. I'll beter put "my_folder" at Spheresvr.exe and then use
Code:
local.spawn <sysspawn my_folder/my.exe>
Veryhappy