The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SYSSPAWN / SYSCMD
Author Message
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #1
SYSSPAWN / SYSCMD
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"">

Grandmaster Localhost Admin
11-26-2016 11:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
ShiryuX
Journeyman
*

Posts: 249
Likes Given: 1
Likes Received: 19 in 14 posts
Joined: Mar 2010
Reputation: 4



Post: #2
RE: SYSSPAWN / SYSCMD
%20? +? No idea.
11-27-2016 05:11 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #3
RE: SYSSPAWN / SYSCMD
You can do it with quotes:

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

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
11-28-2016 07:54 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: SYSSPAWN / SYSCMD
(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">

Grandmaster Localhost Admin
(This post was last modified: 11-28-2016 08:30 AM by Kanibal.)
11-28-2016 08:30 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
ShiryuX
Journeyman
*

Posts: 249
Likes Given: 1
Likes Received: 19 in 14 posts
Joined: Mar 2010
Reputation: 4



Post: #5
RE: SYSSPAWN / SYSCMD
He's already using quotes. Did you try using %20 as space?
11-29-2016 05:34 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #6
RE: SYSSPAWN / SYSCMD
(11-29-2016 05:34 AM)ShiryuX Wrote:  He's already using quotes. Did you try using %20 as space?

Yes

Grandmaster Localhost Admin
11-29-2016 06:16 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: SYSSPAWN / SYSCMD
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>> 
11-29-2016 06:38 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #8
RE: SYSSPAWN / SYSCMD
(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

Grandmaster Localhost Admin
11-29-2016 06:52 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)