Page 1 of 1
'Create Share' on Xp
Posted: Mon Dec 18, 2006 10:46 am
by jweksej
'Create Share' on Xp does not work when 'Simple File Sharing' option (explorer 'Tools->FolderOptions->View' dialog) is enabled.
How to get current status of this SFS and how to change it from IA script level? I've found some info - shell32 allows to change it but I've failed on looking which function is responsible for it. Do someone know how to do it?
Any help appreciated
regards
Jarek
Posted: Tue Dec 19, 2006 3:30 am
by PetSo
Wouldn't it work to run a commandline similar to:
'net share mytemp=c:\\tmp /REMARK:"MyTemp"'
Instead of changing the settings on a users computer?
To get info on more commandline options for 'net share' type 'net help share' on the commandline.
/PeterS
Posted: Tue Dec 19, 2006 4:35 am
by jweksej
No, it doesn't works. For security reasons MS disabled this feature (simple file sharing) in WinXp. It is easy to enable it from explorer GUI, but I would like to do it from IA script level.
Posted: Tue Dec 19, 2006 5:11 am
by PetSo
Yes I can see that you would like the feature to work in IA, I was just trying to give you an option while you wait for them to fix it.
FWIW
I tried setting the SFS to off and to me it seemed the 'net' commandline worked equally well to create a share wether SFS was on or off.
A quick search with google seems to indicate that the only way to enable/disable SFS is with that checkbox in explorer.
To check if it is enabled you can read
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\ForceGuest
If it is 1 then SFS is enabled.
/PeterS