Main Topics
Browse All Topics I need to write a batch file that maps a network drive but uses a different user name and password to log on to that network share.
I am running the Microsoft VB file xcacls.vbs from a script, the file is stored on a remote share but whenever it is called I get the Open File Security Warning, I would like to be able to suppress this.
Thanks
Greetings,
Thank you for assisting me with this show stopper. Apparently I'm attempting to run an app with a 32-bit dll on a 64-bit .net 2.0 system (hosted server, I can't fall back to Win2003 32-bit) and when this 32 bit dll code is executed...
I have a thread communicating with a window via messages.
I want to use PostMessage, but for some reason I seem to lose many of the messages sent via postmessage. This happens occasionally, and seems to be unpredictable.
If I use...
Dear experts,
This seems a common issue (Faulting module path: C:\Windows\syswow64\KERNEL
I am writing an ftp client using MFC. The particular server that my client is communicating with is A Bulletproof ftp server. I connect to the server by creating an CInternetSession object and then I call its member function GetFtpConnection....
I have a service (written in Visual Basic), running under Windows NT/2K/XP/2003. I need to get the name of the currently logged in user, but most Windows APIs I have found return the username of the *calling thread*, which when run as a system,...
Hi there,
I'm used to the Unix programming environment, where I can tell the application to look for its libraries using the cached library environment specified by ldconfig and /etc/ld.so.conf, and also by the shell environment variable...
How can I use psexec to execute a DOS batch file ("name.bat") on a remote server from my XP PC?
Hello,
I need 2 batch files written that will allow the following:
1. Clear Proxy settings in Internet Explorer -->Tools --> Internet Options -->Connections --> Lan Settings
2. Import Proxy settings into IE the same as above, but instead of...
I'd like to perform a cacls command for each file in a directory recursively.
- cacls *.* /T /E /G Everyone:R
fails with the following message: "Tha data is invalid"
- for %%f in (*.*) do cacls %%f /E /G Everyone:R
modifies the...
I have a KeyboardHook (as a DLL) which senses all keyboard activity and it is of type WH_KEYBOARD
The keyboard hook is working well and the keyboard callback procedure is called with parameters WPARAM and LPARAM
I am able to sense the key...
I'm trying to build a VB.NET program that can lock or unlock the local computer's desktop (e.g. the equivalent of windows key+L).
It's easy enough to *lock* the desktop. There's lots of scripts to do that, e.g.
rundll32.exe...
I'm using remote desktop from XP to an XP Pro SP3 machine, and after working fine for about 2 years, it now BSODS when remoting to it.
Event Type: Information
Event Source: Save Dump
Event Category: None
Event ID: 1001
Date: 12/3/2008...
hi,
when i set a User envir variable in vbscript which can be used in the same CMD
all is ok if i run another script (or in another cmd)
but how can use this env variable in my loginscript ?
set-env.vbs
Set objShell =...
Hi,
I wrote an application (in Delphi) that is used by hundreds of NT users over an internal network. The .exe file is about 2161KB in size, and resides on an NT server that all of the clients access. There are no DLLs involved. Nothing...
Ah hello.
I have been looking into how to monitor changes to a directory; i.e. receive notification that a file has been added to a directory. After reading many previous questions on here and looking at numerous linked articles, I found that...
Hi,
On my customer's Windows XP machine, the user's APPDATA path has somehow been changed to C:\Windows\Application Data, which should be C:\Documents and Settings\User\Application Data by right.
The XP is not upgraded from previous...
I have developed a simple add-on for IE using the example available at:
http://msdn.microsoft.com/
I am using BeforeNavigate2 event instead of DocumentComplete Event in the example.
Here, I read the URL...
I just logged into my domain controller and got an error message stating that there appears to be an IP address conflict. I have not added any new hardware to the network in the past several weeks so I find this error message very strange. I have...
Havent used Poolmon a heck of a lot, but in troubleshooting a BSOD, bugcheck 0xF4, where csrss.exe is terminating and crashing, I am finding a problem with interpreting the Tags in poolmon. There is supposed to be a localtags.txt file that when...
Hi friends !
I have a IBM PC. When I was installing Windows XP Professional on the PC then I found the following message on a Blue Screem...
A Problem has bee detected and windows has been shut down to prevent damage to your computer.
It...
I want to change the following registry entry permissions using vbscript on a base XP machine, the script needs to run local and it does not have regini.exe installed on it. I'm sure there has to be an example out there but I CANT FIND IT!! Help...
Hi,
I would really appreciate it if someone can assist me with this problem:
I have a Integration Services Project in business Intelligence Studio that uses a Web Service Task to connect to a web service on a different machine. Running the...
I have written a service which I want to debug. I am using WinDbg to attach to the service process. When I do this, I always get the error, "*** ERROR: Symbol file could not be found. Defaulted to export symbols for...
Hi,
I was wondering where I can find a list of assembler equivilants in hex.
I am not sure of the proper name, so searching on altavista didn't turn up much.
What I mean is when a program is compiled, assembler is converted to hex.
eg....
I am trying to suppress the dos window that appears when a batch file runs. I take care of about 50 public workstations and I want a batch file to run when the user logs in but I don't want them to be able to see it. What has been happening is...
I am working on using Window's WMIC to obtain the total physical memory and total virtual memory (along with numerous other things). I get the expected total physical memory using:
C:\Documents and Settings\Administrator>wmi
Dear Sirs/Madams,
I'm trying to get still image from my webcam with delphi 2007. I used jedi avicapture and it provided 640 x 480 image resolution.
I have two webcams, one of them my laptops internal webcam, it supports up to 1.3 mp, other is...
Basically, this question has been asked before here on Experts-Exchange (http://www.experts-exchan
I have an application, which upon startup, registers a required DLL for integration with another product.
The main problem is that a standard windows user does NOT have the correct permissions to self register a DLL, so obviously the operation...
Attach is the code snippet I'm using. I've tried everything to programmatically disable / enable a menu item like "Down" but nothing works for me.
Any ideas would be much appreciated.
I just installed Cygwin and need some help getting it setup? I basically need to know what I need to configure in order to run a basic program. I've started with 300 points and will go up if necessary.
When I initially launched it, I get...
I need to check if the mouse has been moved from the window that was click to trigger a WM_LBUTTONDOWN message, but only when a WM_LBUTTONUP message is sent. This is being handled in the PretranslateMessage() function of the dialogs class. Im...
Hi,
I am trying to install my legacy DCOM app done in VB6 (client) and C++ (middle layer) on to a Windows 7 environment. Obviously, there a few things that are different because I get a constant runtime error 70 "permission denied" when I try...
Does anyone know if it is possible to convert .exe to .msi installation packages
Quick question hopefully :-)
How long does it take to complete Active Directory replication between the DCs and its clients. Is there some kind of formula documented to approximate the time required? I have a small domain (6 clients and 2...
i am attempting to craft a WMI filter for group policy to deploy the office compatibility pack to only stations that have a version of Office older than 2007.
Using Powershell, if i run the following against a station it does list the version...
Hey all,
I have deployed a log on script that runs a VBS script. This runs ok on around 30 TS servers, but it comes up with a 80041002 error on 2 of the servers. They are all Windows 2003 SP2 servers running Citrix.
The error shown is
...
I want to pass credentials to an IE site I launch since it prompts me. I don't want to pass my domain authentication because the authentication this uses is from a flatfile database so i want to just pass it a username and password.
the code...
Our DCom App works fine during periods of 7 or more days but suddenly any object creation becomes to return the 800700A4 error.
No new Complus nor "DistributedCOM" records are added to the Event Viewer.
The server must to be rebooted...
Question 1 (the toughest I believe)
I thought that I saw somewhere the information when a Registry Key or Value was added to the Registry Database or when it was Modified. I know that you cannot see that in the Windows Registry Editor. Is there...
Hello,
I am looking for good and working sample of using CreateProcessAsUser() function. I can't use CreateProcessWithLogonW() because this function is not available on Windows NT system. I found one example which use service to run process as...
I'm using Visual Studio 2010 C++ to develop a small DLL that will run on Windows 2003 (and 2008) servers. The DLL I created works fine on the same desktop I'm developing on but it is missing the MSCVP100.DLL and MSVCR100.DLL files (only has...
hi - this is my first (probably of many) question on EE. i found the fix to my problem but just need it explained to me.
it was under the title "Job "sent to printer" but still remains in queue".
the answer was given as -
I know very...
I want to integrate makecert sighing into automation build procedure. However, makecert.exe asks you by pop-up dialog only so it stops whole build process. So when I run the automation script, I have to wait in front of the build PC shows...
Hi,
I'm looking for a call to the Win32 API to zip/unzip files.
I do not want to use a 3rd party implementation (no sharpziplib or the like) nor do I want to use the .NET implementations of deflate or GZip, neither of those suit my needs. I...
Hi,
I am facing a problem simulating a keypress by a sendmessage
I wish to simulate pressing ALT+C to a particcular window
Actually the window has a hyperlink which has a shortcut as ALT+C
I have a handle to that window, and wish to...
Hi there,
I am using this windows API and it seems that I am getting extra characters returned from Windows or I am not processing the buffer correctly.
Using a WinVista platform under Delphi2007. The code is straight from the PDirMon...
Hello experts,
I'm currently trying to write a Windows service in C#, which should react to common events like user logon/logoff and lock/unlock - but without making the service interactive (security risk!). Important: this should also work in...
Is there any API function to turn off the monitor ?
Thank for any suggestions.
My Inno Setup uses isxdl.iss to download the main executable. It works flowless, but recently, I added a NeedRestart() function for Vista Users. The problem is that when the user clicks the "finish" button, the setup begins downloading again. ...
Hi experts,
I am a little confused.. I am trying to include into a mfc dialog-based project a child window created with CWnd class, but I can't get this code working:
CProp::CProp(CWnd* pParent) //Note pParent is the CWnd pointer to my...
Does anyone know how to revert back to the classic start menu that had the run prompt and didn't list "frequently used programs", that had networking, printers, etc on it (like the windows xp, windows server 2003 'classic' start menu)?
I...
May i know what causes this error?
1>c:\program files\opencv\cvaux\include
Below are the codes i got it from website
hi,
Does anyone know how to read a CPU Temperature from a custom application? I can see the CPU Temperature and Fan Speed from the bios when i boot my computer, I know the computer is using a special chip to display that info "Winbond...
I'm writing a simple windows batch script that is supposed to copy some files to another location. However in many cases files will exist already and the user will have to press 'a' for overwrite all. this happens twice in the process as to xcopy...
I need to create a batch file that will ping (in windows xp) a list or predifined set of IP addresses and then export the results to a text file, or a log file of any sort. I am not a programmer by any stretch, and I may be asking this in the...
Hi,
my topic title isn't really clear but i don't really know how to explain it in one sentence. I need to run many command into a batch file. But you know that the batch file will close only when all command will be run. So if, in example, i...
I'm trying to convert a TCHAR* string to an integer. MSDN says that the tchar.h routine is _tstoi(). When I try to use this function, my compiler says _tstoi() is undefined. What's the best way to covert a LPTSTR to an int?
A very simple program as follows:
procedure TForm1.Button1Click(Sender
begin
if OpenDialog1.Execute then
OleContainer.CreateObjectF
end;
..will hang on many computers in...
i have a socket listening and i connect to it and the listening socket accepts the connection then send() some data then does shutdown on it why does the connecting socket sometime when recv ()ing get error 10054? it seems to happen randomly.
I am experiencing a problem with ActiveX. CoInitialize() is called once at the beginning of the application, and CoUninitialize() is called once at the end. In between, CoCreateInstance() can be called several times for different COM objects -...
I have a script that will query a remote server looking for a specific process, and I have it returning a list of the PIDs and I want to send a kill command to each of the threads but I'm having trouble getting it to work.
When it gets to this...
Hi, I am using a WMI script to rename/IP machines per their mac address -- when that is done I am using the following to call a command that joins to the domain and performs some other things. I just want to see if someone can clarify the syntax...
Hi,
I want to retrive and change the proxy setting for IE and Firefox programmatically. How can I do that?
I could also use other solutions besides vbscript. Please suggest one.
Thank you!!!!!!!
Two part question:
(1) [175 pts]
In order to automate some tasks I have that require opening several Windows programs, I dumped them into a DOS batch file to open the programs.
This works relatively well, but some programs halt the...
This is the file that the problem occurs in.. prefastnew.dsm:
Sub PrefastNew()
'DESCRIPTION: Reads the compilation options from the active project and compiles the active file with Prefast using these options
Dim PathString
If...
How to convert from CImage to HBITMAP?
CImage image;
HRESULT sc=image.Load(stringload);
HBITMAP hbmp=image.Detach();
This doesn't work! Any solution to this is very welcomed!
The opposite works very well:
CImage image;...
Hello Experts,
Can anyone recommend me a good OCR-library that I can use with VB.Net ?
I strongly prefer Royalty-free libraries, as it will be integrated in a program that is installed in many customers of our company.
At the moment I have...
Hi all,
I'm doing some development on office automatisation, and i ran into a little problem i can easily avoid, if only I can get the language of the Windows OS installed... The windows OS's i use are Windows 2003 and Windows XP. Now i'm...
Hi,
I want a utility that will allow me to view the OLE/COM objects that are registered on my computer.
Would be really cool if it displayed properties / methods as well.
Can I down load such a tool from some where ??
Thanks
Matt
Let's say an app (written primarily in VC6) has two or more dialogs (i.e. a dialog with a list of people and one or more dialogs that contain person information for a person selected in the first dialog).
Each dialog contains a member...
How can I determine the hInstance of a DLL from within the DLL (without having to specify its name)? All I could find was GetModuleHandle(lpModuleNa
I have a 500mb+ xml file I need to break apart, but every time I do Get-Content file it is too large for memory. Is there any way to process each node in the root one at a time similar to reading a stream?
The error: Exception of type...
I'm using a Batch File (for now) to have a user launch a SQL stored procedure. The date and time is stored in a variable which is an input parameter to the stored procedure. It's currently giving me the time in AM/PM rather than 24 hour format....
My app works on the machine it was built on but fails on all others with a EventType clr20r3 system.invalidoperationexc
I have my app to load some BMP's from resources . The problem is that BMP's are really large .. and my EXE is > 3MB . I wonder how could I load JPG and convert it to a HBITMAP or something .. Can anyone help me ?
Thanks
I am seeking a way to detect my laptop's docking state so that I may programmatically reconfigure video settings.
I have written a script in Autohotkey that does the reconfig, I now just need the trigger. I would prefer a script within...
I know this question has already been asked and never answered, but I'm trying again in case someone who is new in EE knows the answer, do anyone knows how to extract images from thumbs.db file (not generating new ones, extracting them from the...
I have a batch script that is supposed to examine the size of a file, examine the free space on my c:\ disk, then figure out how many copies it can keep archived without a drive space problem.
My problem is when I do a "set /a" (below it's set...
Hi,
I have a script that for a year has run on every XP machine in the building regardless of Service pack without error. A couple weeks ago, about 10 machines started getting errors :
the error names the file
Line : 4
Char : 1
Error:...
I need help creating a batch script using robocopy or C++ to synchronize two folders. It would have to overwrite old files/folders with the newst files/folders. What's the best way to achieve this? I would be open for an executable file as long...
I'm writing a disk utility that will need to directly write to a volume; thus, for compatibility with Vista, I'd like to lock that volume before writing to it. Whenever I try issuing a FSCTL_LOCK_VOLUME or FSCTL_DISMOUNT_VOLUME command, the call...
Hi there,
I am looking for a solution to refresh the HKLM registry settings without rebooting, specifically the tcpip interface settings. We are deploying a utlity with our software and having the user reboot isnt an ideal option for us.
I...
When I run this function for a specific user with an exchange mailbox and look in the properties for that mailbox on the Exchange Management Console, the box next to "Hide from exchange address lists" is checked, but the address is still visible...
Is there a function like this so I can save my current pointer position?
Hello,
I have a group-box in my MFC dialog box. Its variable is class CStatic.
I need to set the groupbox' background color to white.
How can I do that?
Thanks!
Hi:
Right now at work we use Altiris 6.9 sp4. We are looking at Sccm 2012 and Altiris 7.1 to see which one would be a better fit for us. They both would require us to make some changes to the way that we do thing now. So we thought it would be a...
My app has to bring its window to the front under certain conditions. The windows is to become the Active, Foreground window, but not Topmost. Just as if I have clicked the taskbar icon.
The closest I have come is via the code shown below:
...
Using VBScript I need to write data to an Access database on a remote machine.
At the moment, I have the script below, which works perfectly, but requires me to manually set up the ODBC first.
What is the best way to automate being able to...
OK..I have a situation where over half of the client PC's certificates expired on 2/25/08. So if I open the
1. MMC
2. Add the snap-in for certificates
3. Under the certificates go to the 'Personal' folder
This is where I find the expired...
Hi, I'm processing a text file and want to output the data in a psuedo table (all console work).
To make the "columns" line up, I need to know the longest string length.
Is there a way to get this without resorting to hacks like this ...
...
We are having problems deleting a registry key from Windows Xp sp2 machines. We need to create a script that I can roll out to our end users that removes the following registry key.
HKEY_LOCAL_MACHINE\SOFTWAR
I am wanting to create and application which sends the smoothest possible scrolling command to another application. This target application is projected on a screen and loads of people will sit in a meeting and read text there for a long time....
Hello,
Which API supports Visual C++ 6.0 for parallel C/C++ programming?
Development environment must be:
- Windows xP Pro or xP x64 Pro
- VC++ 6.0 or, alternatively, Borland Builder C++ 6
- Platform SDK February 2003 or early
- OpenMP or...
Windows Measurements Instrumentation interface contain a method to get CPU temperature but from what I have read, it is not implemented for most motherboards.
Still, lots of products e.g. Sisoftware,MotherBoard monitor ,PC Wizard 2008 offer...
Hello,
Here is my first post, so I made an application using HBITMAP with the LoadImage method () on a bmp file. But this time I would load an image, not from a file (code below) but using data in memory (see comments).
My program works...
Hi all,
My application generated the exception in the subject line at a client site on a Windows NT 4.0 Server box, sp 6. The identical application runs perfectly on every other NT box its ever been installed on.
The only reference to this...
My company uses ClearCase for their versioning system. This is my first experience with ClearCase, and I'm trying to figure things out. The View (or VoB, don't know which one I'm actually accessing) is hosted on a Unix server running Solaris 8....
DanRollins
17,225
80 points yesterday
Profilejkr
7,800
0 points yesterday
Profilesarabande
5,000
0 points yesterday
Profilesinisav
4,000
0 points yesterday
ProfileZoppo
3,500
0 points yesterday
Profileburrcm
2,800
0 points yesterday
ProfileDTHConsulting
2,000
0 points yesterday
ProfileGeert_Gruwez
2,000
0 points yesterday
ProfileImaCircularSaw
2,000
0 points yesterday
ProfileGeisrud
2,000
0 points yesterday
ProfileRun5k
2,000
0 points yesterday
ProfileShareefHuddle
2,000
0 points yesterday
Profiletampnic
2,000
0 points yesterday
Profilepgnatyuk
1,980
20 points yesterday
ProfileThommy
1,800
0 points yesterday
Profilemrwad99
1,800
0 points yesterday
Profilemomi_sabag
1,800
0 points yesterday
ProfileTommySzalapski
1,600
0 points yesterday
Profileve3ofa
1,300
0 points yesterday
Profilecpkilekofp
1,300
0 points yesterday
ProfileDarr247
1,000
0 points yesterday
Profilethinkpads_user
1,000
0 points yesterday
Profilematrixnz
999
0 points yesterday
Profilejoshbula
900
0 points yesterday
Profileadminnrg
750
0 points yesterday
Profile