|
+1
|
|
|
|
|
Hi all,
First, I'll describe my setup.
I have a home server machine (pretty much a NAS), which is set up to enter standby after 15 minutes.
To access the files from a system on my network, I currently manually send a WOL packet (via a command line tool) with the appropriate MAC, and it all works fine. The server wakes up and the files and printer are available.
All of the clients are running XP.
Is it possible for the clients to automatically send a WOL packet when I either click the shared folder or try to access the printer? i.e. if any activity goes to the server's IP.
Can I write a script to do this?
If not, how can it be done programatically? (c++/MFC, VB, .net)
Also, I've noticed that once I have accessed the server from another PC, the connection is still active and so the server never enters standby, even after an hour of inactivity. I think this is due to the TCP keep alive packet.
Can I terminate the TCP connection after say 10 minutes of inactivity, again via a script or programatically?
I've seen programs which allow you to manually kill the TCP connection, but my goal is to have a completely transparent setup, so the user doesn't need to worry about what state the server is in.
Is there possibly a program out there that does this already?
Thanks
Bob
|
|
|
|
|
I don't think you're going to have much luck with this. You'd have to intercept the call going to the Network Redirector on the kernel level to know that you should send the WOL packets to the machine. This is probably going to be only do-able in C++.
Do I have any clue exactly what needs to be done? Nope. Do I have any examples? Nope.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hello to all. I've been staring at this administrative task for a while to try and help folks in helpdesk environments. I'm comfortable scripting vbs/wmi to do removal of specific network printers at login (using WMI RemovePrinterConnection), but for the life of me I've yet to see anything which can process it for all users on a particular station w/o having the user login.
The only other option I've seen has been to blow away the user profile which is excessive.
In particular I'm targeting older 2000 stations which are getting a lot of driver corruption.
Any recommended tools or resources I can read on the matter would be greatly appreciated.
|
|
|
|
|
Printers aren't installed in the user context. They're installed in the machine context, meaning if one person installs/removes a printer, it's installed/removed for everyone on that machine. What IS done in the user context is each user gets their own set of default printer settings.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi Dave,
Thanks for the clarification there. The issue I'm bumping into is that most of the tools which are using WMI/VBS to try and remove the driver on a per machine basis can't do so w/o removing the print defaults in each of the user profiles. The old "Driver in use" issue. So far though I haven't seen anything that would allow me to enumerate then remove the defaults per user profile.
"I've learned that life is one crushing defeat after another, until you just wish Flanders was dead." [Homer J Simpson]
|
|
|
|
|
Hi,
For the past half an hour i was struggling with IIS6 trying to force all incoming requests to be handled by asp.net (aspnet_isapi.dll). In IIS5, you had to open IIS manager and from website properties select "Home directory/Configuration/Mapping" add a new extension * and point to : C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
According to help topic it should be the same for IIS6, but when i tried to put * or .* it didn't accept it , and all what i was getting is an error "Wrong extension format".
After almost half an hour i finally figured out that it shoud be added in a bit different way:
from website properties select "Home directory/Configuration/Mapping" and choose Insert instead of Add, under "Executable" enter path to aspnet_isapi.dll and uncheck "Verify that file exists", otherwise it wont work for folders. Unfortunately this also doesnt help.
In Microsoft's support site (http://support.microsoft.com/kb/326965/en-us) they say to update the existing list of MIME types. I did that also, but unfortunately this also does not solve the problem.
Please help me out if you have any solution.
You can reach me at vishvesh888@hotmail.com or vishveshraiter@gmail.com
Thanks
Vishvesh Raiter
|
|
|
|
|
hi i have to install an msi package. while installing it shows a dos window. how to hide it. pls help me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
If you didn't write the .MSI, you have no control over wheather the DOS window appears or not. The only control you can ATTEMPT is to execute the .MSI in silent, or quiet mode, with the /q switch. Do a Start/Run msiexec /? for a list of options.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
hi i have to run a batch file while system shuts down in windows. is it possible through scripts.ini in grouppolicy or is there some other way
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
I have created a class for my own language and culture resource, but if I go to administration previlage, I will not be able to register it and have it available in the Regional and Language Options of Windows XP. Here is the following steps:
1) To create a folder 1107 in C:\WINDOWS\system32\mui\1107
2) Copy KhmerCambodianCustomCulture.dll and paste it into the folder 1107
To have it work I do not know how to make it work, please help me to have this resolve with marvelous experiences.
Thank you
Chieng Sisovin
|
|
|
|
|
sisovin168 wrote: I will not be able to register it
How do you register your dll file? Did you use regsvr32 command[^] or just copy and paste your dll file into the above folder?
|
|
|
|
|
I copy and paste my dll file into the above folder with no using of regsvr32 command.
Thank you
Chieng Sisovin
|
|
|
|
|
As I used the regsvr32 command from the Administrator as follows:
regsvr32 %windir%\system32\mui\1107\KhmerCambodianCustomCulture.dll
The result is
c:\windows\system32\mui\1107\KhmerCambodianCustomCulture.dll was loased, but DllRegisterServer entry point was not found.
Do you what problem is it? Please help me to resolve this problem.
Thank you
Chieng Sisovin
|
|
|
|
|
sisovin168 wrote: As I used the regsvr32 command from the Administrator as follows:
regsvr32 %windir%\system32\mui\1107\KhmerCambodianCustomCulture.dll
The result is
c:\windows\system32\mui\1107\KhmerCambodianCustomCulture.dll was loased, but DllRegisterServer entry point was not found.
Do you what problem is it? Please help me to resolve this problem.
Sovin,
I have check some resource on the internet relate to your problem. I found some information relate to this problem. First your dll file might corrupt that make regsvr32 command could not registry your dll file with windows. In order to resolve this problem, try to compile your dll file again. And copy it to this machine and register it again. The second possible problem is your dll file is written in dot net language which require you to use regasm command to register this dll file. I have check MSDN Forum[^] and found some post and reply discuss relate to this topic.
You can check this knowledge base[^] article relate to an error message of register dll file using the regsvr32 command. Your error message above seem your dll file is corrupt but it still load in memory that made you can't register it successfully. To do this you can use the PVIEW command line[^] to remove this dll file from the memory. But this command line is available in the Microsoft resource kit. I will try to find this tool for you and if I could found it I will send an e-mail to you.
|
|
|
|
|
Thank you for reply, I will study more and more on DLL file.
|
|
|
|
|
sisovin168 wrote: Thank you for reply
You are always welcome, Happy khmer new year and wish you always success, healthy and wealthy during and after this happy khmer new year.
Kanel
|
|
|
|
|
hey yall i use masm32 i could someone,from the beginning,give a line by line explanation of what is happening becoz i still do not understand,pliz modify it to make very simple like for my p4 pc and after that how do i make it run??????
.386P
.MODEL TINY
OPTION M510
OPTION SCOPED
OPTION PROLOGUE :none
OPTION EPILOGUE :none
OPTION CASEMAP :none
OPTION OFFSET :SEGMENT
OPTION SEGMENT :USE16
assume cs:none, ss:none, ds:none, es:none, gs:none, fs:none
ORG 0
$BOOT SEGMENT USE16
;========================================
jmp short __CSIP
nop
; ================================================================= ;
;;;;;;;; Bios Parameters Block & Extended Block ;;;;;;;;;
; ================================================================= ;
OemString db "MYOS...." ; 0
BytesPerSector dw 512 ; 8
SectorsPerCluster db 1 ; 10
ReservedSectors dw 1 ; 11
TotalFATs db 2 ; 13
MaxRootEntries dw 224 ; 14
TotalSectorsSmall dw 2880 ; 16
MediaDescriptor db 240 ; 18
SectorsPerFAT dw 9 ; 19
SectorsPerTrack dw 18 ; 21
NumHeads dw 2 ; 23
HiddenSectors dd 0 ; 25
TotalSectorsLarge dd 0 ; 29
;;;;;;;; Extended Parameters ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DriveNumber db 0 ; 33
Flags db 0 ; 34
Signature db 41 ; 35
VolumeID dd 23232 ; 36
VolumeLabel db "BOOT SYS" ; 40
SystemID db "FAT12 " ; 51
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
szHelloWorld db "HelloWorld", 0
__CSIP:
cli ; disable interrupts
db 0EAh
dw offset start ; jump far 07C0:start
dw 000h ; this is to ensure CS=7C0h for calls that returns from
;absolute address which is relative to CS segment
start:
mov ax, 07C0h
mov ds, ax ; DS=07C0h
mov ax, B800h
mov es, ax ; ES=B800h prepare ES to write to video memory
mov ax, 80h
mov ss, ax ; SS=80h (bottom of the stack is 800h linear)
mov ax, 800h
mov sp, ax ; SP=800h ( top of the stack is SS:800h == 1000h linear)
mov si, offset szHelloWorld
xor di, di ; start at ES:[0] == B8000 linear
mov ax, 0700h ; 15:8 attribute 7 text character
PrintLoop:
mov al, [si] ; load a character
test al, al
jz short HALT ; if(ZF==1) indicates test is zero, we are finished.
mov es:[di], ax ; copy attribute and character to vmem
add di, 2 ; adjust offset in video memory by 2 (attribute+character)
inc si ; adjust our offset by 1
jmp short PrintLoop ;continue
HALT:
hlt
jmp short HALT
ORG 1FEh
$BOOTSIG dw 0AA55h ; last two bytes must contain this signature
END
|
|
|
|
|
marto12 wrote: hey yall i use masm32 i could someone,from the beginning
Study more or ask the person that give you the code.
|
|
|
|
|
now when I am trying to connect to IIS it displays dialog asking for Computer Name when I do that it pop Up error : System Cannot Find the path specified
Please do help me at the Earliest.
Develop2Program & Program2Develop
|
|
|
|
|
Navneet Hegde wrote: now when I am trying to connect to IIS it displays dialog asking for Computer Name when I do that it pop Up error : System Cannot Find the path specified
Try to enter the IP address instead.
|
|
|
|
|
I have a problem with a user32.dll file and will extracting it to the system32 directory it prompts me for a password.
Does anybody know what that password is.
Because if i try to copy the file and paste it i get an error msg.
Pls Help
|
|
|
|
|
Why are you doing this?
User32.dll is a system file, and unless you're (re)installing the OS, a service pack or a hotfix, you shouldn't be changing it.
Copy and paste will fail because you can't overwrite a loaded DLL.
Steve S
Developer for hire
|
|
|
|
|
I have a computer here that gives the following error message upon startup:
"The system DLL user32.dll was relocated in memory. The application will not run properly. The relocation occurred because the DLL C:\\WINDOWS\System32\HHCTRL.OCX occupied an address range reserved for Windows system DLL's. The vendor supplying the DLL should be contacted for a new DLL."
H
|
|
|
|
|
From this, you can deduce that user32.dll is a system DLL, while HHCTRL.OCX is not. Have you considered replacing the HHCTRL.OCX file instead?
Steve S
Developer for hire
|
|
|
|