KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: '#Uses location on a network drive
Topic Summary:
Created On: 09/05/2020 05:51 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 '#Uses location on a network drive   - dicdoc - 09/05/2020 05:51 PM  
 09/05/2020 05:51 PM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 268
Joined: 07/31/2014

I put my different functions and API refences on a .txt doc. Since I use it on several computers, I put it on a ntework drive which, by the magic of windows 10, did not get then same path although it's the same username

So instead of having

'#Uses "C:\Program Files (x86)\KnowBrainer\KnowBrainer Professional 2017\myAPIAndCustomFunctions.txt"

 I use

'#Uses "mynetworkdrivepath\myAPIAndCustomFunctions.txt" which works fine.

But is it possible to make a pathway with (Environ ( "username" )) in order to take into account the different locations on my different computers ? 

For something like :

'#Uses "C:\Users\" & (Environ ( "username" )) & "\mypath\zzWindowsAPI.txt"


Dim Public usepath1 As String
usepath1 "C:\Users\" & (Environ ( "username" )) & "\mypath\zzWindowsAPI.txt"
'#Uses usepath1


Public Const usepath1 As String = "C:\Users\" & (Environ ( "username" )) & "\mypath\zzWindowsAPI.txt"
'#Uses usepath1


Public Const usepath1 = "C:\Users\" & (Environ ( "username" )) & "\mypath\zzWindowsAPI.txt"
'#Uses usepath1


Const WusrName =  Environ ( "username"' returns computer user name
 Public Const usepath1 = "C:\Users\" & WusrName & "\mypath\zzWindowsAPI.txt"
'#Uses usepath1


I tried all, and they fail. May be it’s not possible, but I wanted to try in order to copy and paste more easyly my KB commands from a computer to another with defining the same ‘#uses instructions everywhere


What do you think ?



Memory: 16GB Microphone Brand and Model: LFH 4000 & Flexy Mike  Operating System: win 10, latest update; Surface Book 2, Processor (CPU) Type & Speed: I7 8650 Soundcard Brand and Model: none Speech Software: Dragon Medical Practice Edition, french version: 4.2 Using KnowBrainer?:Yes

31789 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 2 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 599 guests browsing this forum, which makes a total of 601 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2020 FuseTalk™ Inc. All rights reserved.