Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2008Report 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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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: 37 | Location: Houston, Texas | Registered: May 01, 2008Report 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: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report 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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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, 2008Report 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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders