Dear Mel:
On Thursday, December 9, 2021 at 10:05:09 AM UTC-7, meds...@gmail.com wrote:
Hi All:Is there a mapped drive, or are you going to use UNC?
Is there a Harbour way to access the directories of a peer
machine on the same local LAN Network.
(and yes, I know I can start up batch files to try to do this,
but is there any other way ? )
So, using a harbour proggie, I'd like to copy files from my devYou could do RUN, and give it source and destination information (like in a batch file).
machine to another machine on my local network.
Pretty sure we've implemented filecopy(): https://www.itlnet.net/programming/program/Reference/tools1-3/ng959a3.html ... might be slower, but you could get error status back if it did not work.
David A. Smith
Hi All:
Is there a Harbour way to access the directories of a peer
machine on the same local LAN Network.
(and yes, I know I can start up batch files to try to do this,
but is there any other way ? )
So, using a harbour proggie, I'd like to copy files from my dev
machine to another machine on my local network.
It is a mapped drive J: to the root of the peer:It seems a permission problem. Try to set the directory you want to
(i.e., net use J: \\lenovo\C /persistent:yes)
I can 'RUN' the batch files, but whatever I do (after weeks of trying different schemes), I still get 'Access Denied'
Il 09/12/2021 18:44, Mel Smith ha scritto:
It is a mapped drive J: to the root of the peer:It seems a permission problem. Try to set the directory you want to
(i.e., net use J: \\lenovo\C /persistent:yes)
I can 'RUN' the batch files, but whatever I do (after weeks of trying different schemes), I still get 'Access Denied'
access writable by NETWORK USERS.
I guess the program does not impersonate the owner/user (you) of that directory, maybe is auto started by system?...
On Thursday, December 9, 2021 at 4:41:38 PM UTC-7, Dan wrote:
Il 09/12/2021 18:44, Mel Smith ha scritto:
It is a mapped drive J: to the root of the peer:It seems a permission problem. Try to set the directory you want to
(i.e., net use J: \\lenovo\C /persistent:yes)
I can 'RUN' the batch files, but whatever I do (after weeks of trying different schemes), I still get 'Access Denied'
access writable by NETWORK USERS.
I guess the program does not impersonate the owner/user (you) of that directory, maybe is auto started by system?...
Hi Dan:left with $100 of my money.
As you can see above, I want to be able to access the root drive of C *and* all its sub-directories.
I was able to do this for *years* with no problem, then after a Win 10 crash in late April, and a subsequent rebuild /update of my Win 10 dev machine, I was unable to 'push' files to my little peer any more.
On my Win 7peer, I give access to *everybody* with read/write/delete options for *all*. I even hired a geek2you guy who came over to my place, and worked for an hour finally saying "you can't do that !" . So, I said I'd been doing it for *years*. He
Also, I've been researching the use of the hidden drive: C$ Yeah, a dollar sign. A mapping using this C$ designation is 'supposed to' allow access to a C: drive on a peer target machine which has a user with the same username and password as on thebase machine. And I have the identical name and password on both machines. And, of course, both usernames are Administrators. Can't make that work either.
Hi All:
I created and ran the proggie, but failed to fool the operating system :(
Il 09/12/2021 18:44, Mel Smith ha scritto:Hi Mel,
It is a mapped drive J: to the root of the peer:It seems a permission problem. Try to set the directory you want to
(i.e., net use J: \\lenovo\C /persistent:yes)
I can 'RUN' the batch files, but whatever I do (after weeks of
trying different schemes), I still get 'Access Denied'
access writable by NETWORK USERS.
I guess the program does not impersonate the owner/user (you) of that directory, maybe is auto started by system?...
Dan
On 10-12-2021 05:11 am, Dan wrote:Hi Jayadev:
Il 09/12/2021 18:44, Mel Smith ha scritto:
It is a mapped drive J: to the root of the peer:It seems a permission problem. Try to set the directory you want to
(i.e., net use J: \\lenovo\C /persistent:yes)
I can 'RUN' the batch files, but whatever I do (after weeks of
trying different schemes), I still get 'Access Denied'
access writable by NETWORK USERS.
I guess the program does not impersonate the owner/user (you) of that directory, maybe is auto started by system?...
DanHi Mel,
There can be multiple reasons for "Access Denied Message". Please try
out the following, one by one.
1. Ensure File Sharing is enabled for the Network Adapter.
2. Disable fire-wall temporarily on both the machines and check.
3. Change the Network Profile to "Private" for the Network Adapter in
use in both the machines.
4. Create a same user in both machine with Admin rights and check.
5. For Win 10 and Win 7 machines to communicate, in File sharing option
of Network, change the password encryption from 128 to 40/56 and see or
if it is at 40/56 change to 128.
6. Antivirus (QuickHeal for example) will not allow file copy/write
unless both the Network profile is set to 'Work' or 'Home' (Default is 'Public') IRRESPECTIVE OF SETTINGS IN NETWORK ADAPTER.
If these do not solve your problem, send me an email and I will try and
help you.
Please understand that this is only a permission issue and you cannot "By-pass" the same through program.
Warm regards,
Jayadev
Hi All:
Here's my little proggie below
#INCLUDE "C:\MGW\SOURCE\INCLUDE2.CH"
FUNCTION Main()
local i,j
local cJdrv,nJdrvtype,nKdrvtype
local lGotJ,lGotK
local cSrc,cDST,nBytes
local nOSERR,nHBERR
cJdrv := "J:"
cKdrv := "K:"
cSrc := "c:\download\somecrap.txt"
cDst := "c:\download\loadofcrap.txt"
cNetDst := "j:\download\loadofcrap.txt"
cls
// now test if J:drive exists
lGotJ := isdisk(left(cJdrv,1))
if .not. lGotJ
alert("No SUCH Drive J. Start network and try again.")
quit
endif
?
? "Drive J exists"
?
// Now test if its a network drive
nJdrvtype := drivetype(left(cJdrv,1))
if nJdrvtype <> 5
alert(" Drive J: is NOT a network Drive")
quit
endif
? "Drive Type of J: is "+ntoc(nJdrvtype)
?
// Try to pass a file from C: to C: first
nBytes := filecopy(cSrc,cDst)
alert("Number of bytes passed is: " + ntoc(nBytes))
// Response above was 2678 bypres passed
// Now Try to pass a file from C: to J: now
nBytes := filecopy(cSrc,cNetDst)
// Respinse above was 0 bytes passed
nOSErr := HB_OSERROR()
nHBERR := FERROR()
if nbytes == 0
alert("Operation Failed. No Bytes Copied. Err1 Code = "+ NTOC(nOSERR)+" Err2 Code = "+NTOC(nHBERR))
// response above was 0 bytes passed, and both error codes showed 0 as the code !
quit
endif
alert("Number of bytes passed is: " + ntoc(nBytes))
alert("Quit Now")
return nil
On Friday, December 10, 2021 at 12:01:57 PM UTC-7, meds...@gmail.com wrote:
Hi All:
Here's my little proggie below
#INCLUDE "C:\MGW\SOURCE\INCLUDE2.CH"
FUNCTION Main()
local i,j
local cJdrv,nJdrvtype,nKdrvtype
local lGotJ,lGotK
local cSrc,cDST,nBytes
local nOSERR,nHBERR
cJdrv := "J:"
cKdrv := "K:"
cSrc := "c:\download\somecrap.txt"
cDst := "c:\download\loadofcrap.txt"
cNetDst := "j:\download\loadofcrap.txt"
cls
// now test if J:drive exists
lGotJ := isdisk(left(cJdrv,1))
if .not. lGotJ
alert("No SUCH Drive J. Start network and try again.")
quit
endif
?
? "Drive J exists"
?
// Now test if its a network drive
nJdrvtype := drivetype(left(cJdrv,1))
if nJdrvtype <> 5
alert(" Drive J: is NOT a network Drive")
quit
endif
? "Drive Type of J: is "+ntoc(nJdrvtype)
?
// Try to pass a file from C: to C: first
nBytes := filecopy(cSrc,cDst)
alert("Number of bytes passed is: " + ntoc(nBytes))
// Response above was 2678 bypres passed
// Now Try to pass a file from C: to J: now
nBytes := filecopy(cSrc,cNetDst)
// Respinse above was 0 bytes passed
nOSErr := HB_OSERROR()
nHBERR := FERROR()
if nbytes == 0
alert("Operation Failed. No Bytes Copied. Err1 Code = "+ NTOC(nOSERR)+" Err2 Code = "+NTOC(nHBERR))
// response above was 0 bytes passed, and both error codes showed 0 as the code !
quit
endif
alert("Number of bytes passed is: " + ntoc(nBytes))
alert("Quit Now")
return nilAnd which message are you getting? Because I don't have your network architecture, mine is all Win10...
Which is Win7, the "C" or the "J"?
Can you have the machine with the "J" drive reach out and copy the "C" drive on the remote machine? Maybe have the "C" machine compare the two files... to make sure backup is occurring.
David A. Smith
I'll puzzle a bit more before slamming my head on the desk :(
Thanks !
-Mel
If I remember well, not even the plain local executables are permitted to write a file directly into the "root" of a disc (in C:\ etc.)
I'd try to create a test folder, and I'd configure it for sharing (it shouldn't be inside your web-enabled folder tree).
Just thinking out loud...
Il 10/12/2021 18:30, Mel Smith ha scritto:Hi Dan:
I'll puzzle a bit more before slamming my head on the desk :(
Thanks !
-Mel
Mel, that thing that someone suggested about the "C:\" path being
treated by Windows >=10 as a forbidden territory lit some neurons in my brain. I think I have heard something similar in the past.
A kind of "security policy" the Microsoft way, the kind of thing you
hear and you try to forget a moment later, as too insane... :-)
Dan
It seems weird that my Win 7 is more powerful than my Win 10
Hi All:
I have a way of getting older versions of Windows 10 (and am creating a version right now on a USB from September of 2020)..
Question: Does anyone know *which* older version of windows allows writing to the root drive of a peer machine ??
If I knew this, then I can easily get that version and overwrite my current version wit this older version ?
Thanks,
-Mel
(and to David -- yes, I'm aware of the risks but I really have to try this !)
On Monday, December 13, 2021 at 6:11:51 PM UTC+2, meds...@gmail.com wrote:HI Ella:
Hi All:
I have a way of getting older versions of Windows 10 (and am creating a version right now on a USB from September of 2020)..
Question: Does anyone know *which* older version of windows allows writing to the root drive of a peer machine ??
If I knew this, then I can easily get that version and overwrite my current version wit this older version ?
Thanks,
-Mel
(and to David -- yes, I'm aware of the risks but I really have to try this !)I consider that the solution described in the below article IS A VERY BAD PRACTICE:
https://www.wintips.org/fix-cannot-save-create-files-on-root-drive-c-in-windows-8-1-windows-7/
On Monday, December 13, 2021 at 4:48:07 PM UTC-7, Ella Stern wrote:
On Monday, December 13, 2021 at 6:11:51 PM UTC+2, meds...@gmail.com wrote:
Hi All:
I have a way of getting older versions of Windows 10 (and am creating a version right now on a USB from September of 2020)..
Question: Does anyone know *which* older version of windows allows writing to the root drive of a peer machine ??
If I knew this, then I can easily get that version and overwrite my current version wit this older version ?
Thanks,
-Mel
HI Ella:(and to David -- yes, I'm aware of the risks but I really have to try this !)I consider that the solution described in the below article IS A VERY BAD PRACTICE:
https://www.wintips.org/fix-cannot-save-create-files-on-root-drive-c-in-windows-8-1-windows-7/
Thank you for this regedit possible solution.
It may be bad practice but it was my work for 8 years without a problem.
btw, I can't even write to *sub-directories* on my little Win 7 machine. Get 'access denied' of course.
So first, I'll try your solution on the Win 7 machine and see what happens
Please not that my little Win 7 machine has total control over my Win 10 development machine, and can read/write/edit/delete any file I choose.
I would like the *reverse* to be true. !
Thanks again for a possible solution
(I'll let
-Mel
I consider that the solution described in the below article IS A VERY BAD PRACTICE:
https://www.wintips.org/fix-cannot-save-create-files-on-root-drive-c-in-windows-8-1-windows-7/
Well I et the UAC setting to 0 in both machines, and I still get 'access denied' .
Il 14/12/2021 05:05, Mel Smith ha scritto:
Well I et the UAC setting to 0 in both machines, and I still get 'access denied' .Did you restart both PC?
EMG
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
On Tuesday, December 14, 2021 at 1:52:05 AM UTC-7, Enrico Maria Giordano wrote:Hi Mel,
Il 14/12/2021 05:05, Mel Smith ha scritto:
Well I et the UAC setting to 0 in both machines, and I still get 'access denied' .Did you restart both PC?
EMG
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Yes, It was a forced option anyway.
Still no joy, and am resigned to not accessing my little win 7 machine from Win 10.
I've gone over several additional 'fixes' from different people around the world who wish to do the same as me.
One guy uses his older Win 7 machine as a backup machine. Then, after a Win 10 upgrade, he was no longer able to back up from his Win 10 to his Win 7 on his LAN.
Almost the identical problem I have !
I followed his 'fix' (very long and laborious), but it didn't work for me.
The problem here is most (or all ?) of you have no working and active Win 7 machine on your local LAN with a Win 10 peer machine.
And therefore you are not able to confirm the reality of your suggestions. btw, my Win 7 machine is Win 7 Pro. Version 6.1.7601, Build 7601
Anyway, thank you all for thoughts
Like a turtle, I'll now pull my head inside my shell for awhile.
-Mel
On 14-12-2021 11:46 pm, Mel Smith wrote:Hi Jayadev:
On Tuesday, December 14, 2021 at 1:52:05 AM UTC-7, Enrico Maria Giordano wrote:
Il 14/12/2021 05:05, Mel Smith ha scritto:
Well I et the UAC setting to 0 in both machines, and I still get 'access denied' .Did you restart both PC?
EMG
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Yes, It was a forced option anyway.
Still no joy, and am resigned to not accessing my little win 7 machine from Win 10.
I've gone over several additional 'fixes' from different people around the world who wish to do the same as me.
One guy uses his older Win 7 machine as a backup machine. Then, after a Win 10 upgrade, he was no longer able to back up from his Win 10 to his Win 7 on his LAN.
Almost the identical problem I have !
I followed his 'fix' (very long and laborious), but it didn't work for me. The problem here is most (or all ?) of you have no working and active Win 7 machine on your local LAN with a Win 10 peer machine.
And therefore you are not able to confirm the reality of your suggestions. btw, my Win 7 machine is Win 7 Pro. Version 6.1.7601, Build 7601
Anyway, thank you all for thoughts
Like a turtle, I'll now pull my head inside my shell for awhile.
-MelHi Mel,
I still maintain there is some permission issue or such other.
I have multiple networks with Win 10 and Win 7 communicating with each
other without any problem. Initially, of course, I also faced many
problems but were eventually solved.
Warm regards,
Jayadev
On Thursday, December 16, 2021 at 6:22:56 AM UTC-7, Jayadev U wrote:Hi Jayadev:
On 14-12-2021 11:46 pm, Mel Smith wrote:
On Tuesday, December 14, 2021 at 1:52:05 AM UTC-7, Enrico Maria Giordano wrote:
Il 14/12/2021 05:05, Mel Smith ha scritto:
Well I et the UAC setting to 0 in both machines, and I still get 'access denied' .Did you restart both PC?
EMG
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Yes, It was a forced option anyway.
Still no joy, and am resigned to not accessing my little win 7 machine from Win 10.
I've gone over several additional 'fixes' from different people around the world who wish to do the same as me.
One guy uses his older Win 7 machine as a backup machine. Then, after a Win 10 upgrade, he was no longer able to back up from his Win 10 to his Win 7 on his LAN.
Almost the identical problem I have !
I followed his 'fix' (very long and laborious), but it didn't work for me.
The problem here is most (or all ?) of you have no working and active Win 7 machine on your local LAN with a Win 10 peer machine.
And therefore you are not able to confirm the reality of your suggestions.
btw, my Win 7 machine is Win 7 Pro. Version 6.1.7601, Build 7601
Anyway, thank you all for thoughts
Like a turtle, I'll now pull my head inside my shell for awhile.
-MelHi Mel,
I still maintain there is some permission issue or such other.
I have multiple networks with Win 10 and Win 7 communicating with each other without any problem. Initially, of course, I also faced many
problems but were eventually solved.
Warm regards,
JayadevHi Jayadev:
Thank you for your (private) offer this morning.
I am able to access with full access rights just *one* folder on my win 7 machine (c:\amyuni).
I would like to know how this particular sub-directory (amyuni)is easily accessible, but others are not.
I have visited amyuni->properties->security->permissions, and noted that the permissions 'seem' the same as at least two other folders.
I can read and copy files from the Win 7 c:\users\ sub-dir, but cannot copy file *to* the Win 7 c:\users\ folder (access denied)/
Thanks again for your offer. If there is some 'permission' steps you can suggest, I'll try them.
Frustrating !.
-Mel
it is now working !!
I was adding permission to everyone in C:\ rather than the network C Shared drive. Wow What a revelation.
Il 17/12/2021 00:37, Mel Smith ha scritto:
it is now working !!Great!
I was adding permission to everyone in C:\ rather than the network C Shared drive. Wow What a revelation.
... just curious why you have to map a drive .. when you can use a UNC instead ??
Use( "\\sales\myapp\Customer.dbf" ) ... where the shared computer name
is \\Sales and the shared folder is \myapp
Dear Rick Lipkin:drive to, is the one the code talks to.
On Wednesday, December 22, 2021 at 7:25:26 AM UTC-7, Rick Lipkin wrote:
I am not Enrico, but...
... just curious why you have to map a drive .. when you can use a UNC instead ??
Use( "\\sales\myapp\Customer.dbf" ) ... where the shared computer nameDrive mapping under earlier version of Windoze, produced faster search results (at minimum). May or may not still be an issue in Windows 10.
is \\Sales and the shared folder is \myapp
<https://superuser.com/questions/1628244/what-are-the-benefits-of-windows-map-network-drive>
... and there have been cases when the UNC path was faster (Server 2016 for example).
I periodically have to have a replacement "server" running (eg: \\sales AND \\sales2) at the same time during transitions, and if you map a drive, then you don't have to touch your code as often when that happens. Whatever server you've mapped your
David A. Smith
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 66:20:04 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,096 |
Messages: | 5,275,054 |