Nokia Active Member Licensed User Longtime User Nov 4, 2016 #1 I have notice if you use the Shell with Open command that it will not open the file location if it has spaces in it.. how ever it does work if I use an _ or no spaces. does not work: B4X: Dim shl As Shell shl.Initialize("shl", "Open", Array As String (/Files/SpiterNet Solutions/MacTest/)) shl.WorkingDirectory = Location shl.Run(1000) works: B4X: Dim shl As Shell shl.Initialize("shl", "Open", Array As String (/Files/SpiterNet_Solutions/MacTest/)) shl.WorkingDirectory = Location shl.Run(1000) Is there a way to make this work even if the file name has spaces?
I have notice if you use the Shell with Open command that it will not open the file location if it has spaces in it.. how ever it does work if I use an _ or no spaces. does not work: B4X: Dim shl As Shell shl.Initialize("shl", "Open", Array As String (/Files/SpiterNet Solutions/MacTest/)) shl.WorkingDirectory = Location shl.Run(1000) works: B4X: Dim shl As Shell shl.Initialize("shl", "Open", Array As String (/Files/SpiterNet_Solutions/MacTest/)) shl.WorkingDirectory = Location shl.Run(1000) Is there a way to make this work even if the file name has spaces?
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2016 #2 Use shl.InitializeDoNotHandleQuotes instead of Initialize. Upvote 0
Nokia Active Member Licensed User Longtime User Nov 7, 2016 #3 Erel said: Use shl.InitializeDoNotHandleQuotes instead of Initialize. Click to expand... that worked.. thanks Erel.. Upvote 0
Erel said: Use shl.InitializeDoNotHandleQuotes instead of Initialize. Click to expand... that worked.. thanks Erel..