Jump to content

Mijzelf

Member
  • Posts

    464
  • Joined

  • Last visited

  • Donations

    $0.00 

Everything posted by Mijzelf

  1. The closest I can think of is using MS Script Encoder. Create a script doing the job: function Mount() { var net; net = new ActiveXObject("WScript.Network"); net.MapNetworkDrive("S:", "\\\\192.168.1.64\\blob$","False","user","password"); close(); }Save it as mount.js. Use the scriptencoder to encrypt it: screnc mount.js mountenc.js Create a hta file: <HTML> <HEAD> <script LANGUAGE="JScript.Encode" > </SCRIPT> </HEAD> <BODY onLoad="Mount()" > </BODY> </HTML>and insert the contents of the encoded file between the <script> tags. Save as mount.hta. Doubleclicking the .hta file should do the job. It wouldn't surprise me if there are script decoders around on the internet, so it isn't rocksolid.
  2. Maybe WM_SETREDRAW? SendMessage( hEditControl, WM_SETREDRAW, FALSE, 0 ); SendMessage( hEditControl, EM_EXSETSEL, ... ); SendMessage( hEditControl, WM_SETREDRAW, TRUE, 0 );
  3. JScript is as available as VBScript. It's the same engine (WScript.exe or CScript.exe), only a different syntax. Your code in JScript would be:var strConnection = "RAS"; var strUsername = "UserXYZ"; var oShell; oShell = WScript.CreateObject ("WScript.Shell"); // run command and wait for it to exit oShell.Run("rasdial.exe " + strConnection + " " + strUsername, 1, true);save as .js file, and it just works.
  4. Well then remove the brackets: oShell.Run "rasdial.exe " & strConnection & " " & strUsername, 1, trueWorks. Personally I hate VBScript for this kind of (apparent?) inconsistencies. CreateObject has to have brackets, and Run should not have. My advice is to use JScript instead. You can do the same things with a much more clear syntax.
  5. No. Strictly spoken a DWORD is unsigned, and thus can contain a number as large as 4GB. The documentation of GetWindowText() says ' GetWindowText causes a WM_GETTEXT message to be sent to the specified window or control'. Reading further in the documentation of WM_GETTEXT: 'Rich Edit: If the text to be copied exceeds 64K, use either the EM_STREAMOUT or EM_GETSELTEXT message.'So it's not explicitely stated that GetWindowText() won't work, but it's at least discouraged to try it. Anf you did already find the suggested solution. BTW, the documentation of GetWindowTextLength() states that the returnvalue can be bigger than the actual size. So in your code you should use the returnvalue of GetWindowText() to determine the actual size.
  6. Your USB ports are 1.1. USB 1.0 is rare. Maybe you´d be better off putting an USB 2 PCI card in your system, as USB 1.1 is awfully slow. (About 1MB/sec, so it will cost 320000 seconds ~ 4 days to fill that 320 GB disk.) You can format it to one 320 GB fat32 partition, but it´s safer to create several partitions < 128GB, because W98 scandisk and defrag cannot handle bigger partitions. (It´s not a good idea to use defrag via USB 1.1 though). BTW, fat32 is the only choice you have.
  7. Are you helped by a small executable? #include <dos.h> #include <stdlib.h> #include <stdio.h> int main( int argc, char **argv ) { if( argc != 3 ) { printf( "use beep frequency (Hz) duration (sec)\n" ); return 0; } sound( atoi( argv[ 1 ] ) ); sleep( atoi( argv[ 2 ] ) ); nosound(); return 0; }Compiled version here
  8. Second try:<br /><br />rundll32 shell32.dll,Control_RunDLL user32.dll,MessageBeep,-1<br /><br />Instead of -1 you can also try 0, 16, 32, 48, 64 Edit: Ehm, sorry, this doesn't work.
  9. Not necessarily. You can also use a dedicated partition for it.
  10. No, not without some extra administration. Each call of exec will have a different this pointer, so all calls have to be done. But you can write a linked list or something like that, to automate that: class C { C(): m_pNext( m_pRoot ) { m_pRoot = this; } virtual void exec(); void exec_all() { for( C *pc = m_pRoot; pc; pc=pc->m_pNext ) pc->exec(); } C *m_pNext; static C *m_pRoot; }; C *C::m_pRoot = 0; class A : public C { void exec(); }; int main() { A a1,a2; a1.exec_all(); }When the list is dynamic, you'll have to write a C destructor which skips the object from the list.
  11. I have seen this behaviour before. It turned out that in Outlook Express->Tools->Options->Connection the option 'Hang up after sending and receiving' was checked, in combination with 'Check for new messages every n minutes'. This was surprising to me, since the system (W98SE) was connected to a LAN, using a normal ethernet interface. So *how* did it hang up?
  12. You'll have to change the line endings from 'CR' to either 'CR LF' (Dos,Windows) if 'LF' (*nix). There are many ways to accomplish this. One of them: Open the file in PsPad, Click on Format->Dos, and save the file.
  13. I think it's a false positive. According to Avira this trojan is from 2007, so a 2003 file cannot be infected.
  14. That statement isn't true. All Windows NT flavours, including W2000 support multiprocessor. That you can't install W2000 is probably caused because it doesn't natively support SATA. If you want W2000 on that laptop search the W2000 forum for installing on SATA.
  15. My Canon camera doesn't act as a mass-storage device. It needs special (Twain) drivers. A cardreader is the only solution
  16. I'm afraid I'm responsible for the second PACO. I'm so sorry . But I'll try a new word VAGA, yet another river
  17. Depends on what you mean. For dos it's doesn't matter if an USB controller is onboard or on a PCI card. It's just a PCI device. So devices which are not accessable with the onboard controller, will not automagically be accessable with the PCI card.On the other hand, some BIOSses have 'legacy support' for certain USB devices like mass storage devices and mice. They emulate a standard IDE disk or a ps2 mouse when they detect such a device during boot. This makes this device is accessable from dos. I don't think in this case it will also accessable if plugged in the new controller. But if you have dos drivers for your device, it doesn't matter.
  18. http://www.nextag.co.uk/usb-2-pci-card/zzu...z0--search-html Yes, it's something like an ethernet card.
  19. No, of course not. Your USB1 host controller cannot provide USB2 speed, regardless which cable you use. If thydreamwalker gets USB2 speed, he has an USB2 controller without knowing it. Just plugin an USB2 controller. I wouldn't be surprised if it's cheaper than that Belkin cable.
  20. I can hardly imagine that it's a cryptographic key, because the registry keyname itself is part of the data. The only way to find the regkey if you don't know it's name is enumerating al keys in HKLM/Sw/Ms, en decide for each key if it could be the searched data. This is hard, especially if the name could be everything. I used regmon to find if something is reading that key. Started it from RunServicesOnce (the earliest moment to start anything). Tried to start everything in the startmenu, but it didn't find anything. (Except regedit, duh!)
  21. You realize that it will last 500000 seconds ~ 1 week to fill a 500GB disk with USB 1 transfer speed?BTW, while you can create and use 500GB partitions, W98 scandisk and defrag should not be used on partitions bigger than about 126GB (the FAT size may mot exeed 16MiB minus 64 KiB). I have read somewhere the WinME tools doesn't have this problems. This is a bit imaginary in this case, since you don't want to scandisk a 500GB partition via USB1. It will take days to finish.
  22. I've got this one: [HKEY_LOCAL_MACHINE\Software\Microsoft\J46000000] "d "=hex:05,05,00,05
  23. Long shot: The license key?


×
×
  • Create New...