Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Net Use with Spaces
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Net Use with Spaces
 Login/Join
 
Silver Member
posted
Has anyone managed to get the net use command to work when the file path has spaces in it.
I have tried with single quotes around the entire path, double quotes around the entire path and it just won't seem to work.
The path location I need to save the file to is below and if I remove the space and replace it with an underscore it works so it definitely seems to be the space causing the problem.
CMD net use J: \\TGMO1\CORP_IS\MOIBI\TEST 1

This message has been edited. Last edited by: FP Mod Chuck,


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Reply With QuoteReport This Post
Expert
posted Hide Post
Have you tried wrapping the path in quotes ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
You can try putting the file path in a variable, and then using the .QUOTEDSTRING sufix. For example:
  
-SET &filepath = '\\TGMO1\CORP_IS\MOIBI\TEST 1';

CMD net use &filepath.QUOTEDSTRING  


Hope that helps.

-Emily


WF 8.1.05 on Windows machines
Backend: Informix, SQL and Oracle databases
 
Posts: 38 | Location: Houston, Texas | Registered: May 01, 2008Reply With QuoteReport This Post
Virtuoso
posted Hide Post
There is always an alternate physical name for any directory with a space in it. Issue the following from the parent directory so see it:
dir *. /x  


You can use the alternate name (like: TEST1~1)


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1101 | Location: Toronto, Ontario | Registered: May 26, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
alternate physical name


That's the old dos 8.3 name.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
I tried wrapping the path in quotes and I tried Emily's idea of putting it into a Variable first and using QUOTEDSTRING but unfortunately neither works.
I think I might have to use a different directory to put it in and then try and call a batch file/external procedure to move it.


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Reply With QuoteReport This Post
Expert
posted Hide Post
Can you post the code, I've done this before and its worked.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
Waz,

You are right. It worked with the quotes around it. I had a permissions issue going on.

Thanks


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Net Use with Spaces

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.