I would like to run the same batch file twice at about the same time. Both batch files create the same variables using the "SET" command. Is there any chance that one batch file will overwrite the value created in the other, or does the SET command declare only local variables? Thanks,
or does the SET command declare only local variables?
Yes, SET creates environment variables but they only exist within the scope of the command that runs them. Thus your two batch files will inherit the environment variables of the parent process (Windows ???) but any new ones they create will not be seen by the other process.
Is it possible to make the shell notify you when the user opens a folder? Notification objects does not seem to cover this functionality. The ICopyHook interface also seems like not the solution. Any suggestions will be highly appreciated.
< context : I put together this machine myself near two years ago and had so many problems using it, so that I just set it aside to wait for at least SP1. The Vista Ultimate was legally purchased in the US (not everyone in Thaiand is using pirated software)>
1. turn out I had a bad memory stick (Geil DDDR2) in slot #1 : pulling that one, and replacing it with the one fomerly in slot #3 cleared up the hardware crashing. Welcome to Thailand : the memory has life-time warranty, but the distributor will only replace the one simm if I return the pair (thus leaving me with a machine with no memory). The distributor claims they will "upgrade me" if I return both sticks, but will not say what the "upgrade" will be. Last time I had to replace an Xfx video card here it took over two months, four personal visits to the store, innumberable phone calls, and finally shelling out more money for an "upgrade" card. I'm actually not surprised the 1 gig memory stick of the fancy type I bought (for its time, two years ago) is not being manufactured, though.
2. fool that i yam, i yam : "ahh," methinks : now that the hardware problem is corrected over it will be all sweetness and light.
And the first "succeses," like flashing the motherboard BIOS to the latest version, installing the VS 2010 beta were reassuring. The driver ugrades for the video card, etc. went okay. Upgrade IE7 to IE8 (the "Googleized" version) okay.
On to upgrading Vista Ultimate with all the latest updates : figuring by this time with SP2, most of the real kinks that have fueled the rages of the likes of JSOP will have been slightly wrinkle-less.
I download SP2 stand-alone : it refuses to upgrade to SP2 with a mysterious error : I go on Ms's bulletin board and find out many others are having this problem : the recommended fix is to re-install, doing an "upgrade" install from the original DVD : no problem; I insert the DVD run setup.exe, choose install : uh-oh : "upgrade" is grayed out.
I try "Windows Update" and now begins the nightmarish cycle of downloading the same upgrades and their re-install on shut-down, and their re-initialization on start-up over and over and over. Even though IE8 and .NET Framework 3.5 latest are installed, it wants to install them again, too, and if I check those options their install will be reported as fail.
I post a message on the MS Vista install forum : so far the only response is very vague, and does not explain why the "upgrade" option on re-install is disabled : the author just re-states the contents of my own message
I am left with, as the only "option" : a "clean" install which will wipe all the efforts of the last four days into resurrecting this machine into usability.
3. speaking of usability :
a. folder view persistence settings do not work properly
b. the "search" functionality is bizarre (failing to sort by Size, for example)
c. the old "statelessness" of the open file dialog browser persists (how many times do I need to tell I want to view in "details" mode).
d. particularly obnoxious is the copy folder/file dialog which insist on appearing, tormenting with you with how ridiculously long it takes to copy or move a bunch of files or folders on a machine with all SATA 3gb drives.
e. and let us not forget : IE8 still will not "remember" the last Favorites folder you dropped something in : so every time you want to add a new Favorite : got to pull that menu down, boys, pull that menu down I am also noting that IE8 will mysteriously fail to ever load certain pages when they are loaded by context clicking on a link in a current page and using the "load page in new tab" option. that was not happening before in my humble lower-end XPSP3 single-core PIV machine.
And, to put it mildly, Vista is, in general, dog-slow (with all the animations and aero turned off, running monitor off a 9600 GSO card with 384 megs) compared to XPSP3 on a machine with half the cpu horsepower using only built-in motherboard graphics : I must disclaimer this assertion by noting that running Vista with only one stick of 1 gig memory is probably not a fair test : but I note that if I bring up the Task Manager, that System.Idle is usually eating more than 50%.
The final insult : Samsung's excellent screen management utility for its 226BW monitor appears to be inoperable with the nVidia 9600 gso card or Win Vista 32 : I can't use the 1280x820 or so resolution at 32 bits with 75 hertz refresh that works best on this monitor for my eyes : setting a custom resolution up in the nVidia control panel is possible, but it doesn't work.
I flagellate myself for my stupidity in not waiting another two years before W7 : please enjoy my screams as I enjoy yours
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
I want to programmatically delete a particular desktop icon; I am doing this by using ListView_DeleteItem. But Windows 7 added LVS_OWNERDATA style to desktop's list view. MSDN says ListView_DeleteItem is supported for selection integrity only and does not actually delete an item but it deletes some other icon ignoring the index provided. Is there any other way to delete a particular desktop icon?
I am looking for some other way than setting hidden attribute or moving an icon from desktop directory.
Is it possible by using IShellFolderView::RemoveObject method?
Like WM_DISPLAYCHANGE indicates that the user has changed the display resolution, is it possible to get any event notification to the Application while switches from user's primary console to security console?
I don't mean to be rude, but I am not completely sure how you are answering the original question. In my perception, you seem to be providing information that is 'nice to know' but is kind of non sequitur to the asked question.
Do you, by any chance, know of any certain Windows messages or hooks or callbacks that are sent when Windows Vista invokes UAC?
Sure it blocks the thread for which it happened, but what about everything else? Don't they even get a heads up?
And btw, while we're on the subject of UAC...how do I make it so UAC is required if a user clicks a certain button?
Thank in Advance
I am adding my custom Paper sizes to the Printer for Printing in Printer and faxes then Server Properties and adding my custom size but it is not shown in Printer when i am trying to print any document and going to set its Paper size
Best Of Regards,
Sad like books with torn pages, sad like unfinished stories ...
I think (although I am open to suggestions on this from someone more informed and experienced than I) it would be nice to use that same gray color but add slanted lines from the top left to bottom right (\\\\\) to break up the color and what appears in the window as well as make it easier on the eyes.
I would like to use this color for the main window that is always visible and used in every folder as well as the "Navigation", "Details" and "Preview" panes. Again, if someone suggests to use a different shade of the color for those areas, I would like to trust a professionals opinion rather than my own.
I have researched how to do this time and again online. Many options have come up but nothing has worked and when it did (IESHWIZ.exe from win98 era) the folder was screwed up in more ways than one!
I do hope that my being rather clueless in the all areas that this forum focuses on! I've gathered info from random places on this site for awhile. This is my second post, the first was just moments ago on an issue with editing the Vista Start Menu- should be right next to or near this post.
I just want to thank everyone who has taken the time to read this-- respond or not- have the answer or have to be the one who makes me cry and says it can't be done! (Please, don't tell me that!)
I would like to stay away from Software (if possible) because I just don't see the point of bogging down my memory for no reason.
I do realize this may be impossible to do and in that unfortunate circumstance I have come up with a comparable alternative.
In the case of that not being achievable I would like to:
- Go into the registry and tell it not to add the blur on aero glass so it is completely see through, like glass.
- Shorten the width of the entire start menu (like the image from link above)
- Remove the Start Orb
- Make Start Menu look flat so Taskbar entries don't look buttonized but like 1 piece cohesive piece (like in image from link above)
- Do the same with the system tray. I don't use the clock either, but that is just a setting I can change (unless it is different after these edits?)
- The Start Bar would than look something like the one pictured in the image. I will be auto hiding this menu. The width should just fit the text when it appears for program titles and whatnot. All flat, so there is no defination between the buttons and bar. Clear.
Thank you SO much for your time here on the Code Project Forums. I appoligize for being rather clieless on the matter... I suppose I would need either a VERY detailed walkthrough or someone to send me the registry changes to click and they are entered for me. (That would be best so I don't screw things up).
I don't know how much Windows 7 changes from Vista in these matters but I am qualified for a free upgrade to 7 Home Premium 64bit.
I currently use Vista Home Premium (x86) 32bit. I doubt my screen resolution is of any importance but I have a 1366x768 laptop and often attach it to a 1900x1200 monitor.
Again, thank you so much for your time in this matter and any advice or hopefully someone with a direct solution of this issue would be respected and appreciated beyond what words I can say. . . I have wanted to do this for a LONG time.
I have one other issue which I will post now in another topic. I know the color of the Explorer folders (any folder windows you open) with the colors being Hard Coded for the white background, but I would like to change that color.
Quite another issue though I figured I would just mention it here at the end!
Take Care Everyone!
"Accept your past to attain your future".
"Don't let the world around you control the world inside"
I currently have a Windows Service written in C# .NET 2.0 which is automatically started and runs under the LocalSystem account - lets call it Serv.exe - this service is responsible for performing administrative tasks (a bunch of them).
There is another application (lets call it A.exe written in C++) which is run under the USER account (non-administrator), this application communicates with the Service (Serv.exe), using custom commands (ControlService(hService, CustomCommand) to tell it what task to perform.
Now - this all works perfectly fine right now, using Windows 2000 and XP - but will this cause problem when migrating to VISTA and Windows7? I know people mentioned that in Vista services run in a different session (not exactly sure what that entails) - will there be any issues using ControlService(...) under OS's past XP?
Key point to recall is that A.exe (non-admin user account) is communicating with Serv.exe (Local System service) to perform tasks like:
- copy files, delete files, move files
- extract files, zip files
- run setup.exe's, apply .MSI files
- register COM objects
- affecting the registry
(pretty much anything you could image)
I need to know if there will be porting problems, if so I'll completly change my approach now (while I have the time).
(and use Named Pipes instead)
The reason I was using ControlService(...) instead of Pipes or Sockets is due to the fact that I only communicate with the service once every 20-30mins and only to request a specific operation be performed (simply send a single integer one-way), I thought pipes/sockets might be overkill for my needs ... I could be wrong ...
Looking for some advice, any help would be much appreciated...
in an earlier thread (sorry I don't have a link, you could search the forums) it was said services run on a different desktop than interactive users, hence they don't even receive the Windows Messages sent by those interactive users.
Luc Pattyn [Forum Guidelines][My Articles] The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
I have a VBA add-in that gets autiomatically installed on user's excel. Things were good until they upgraded to Excel 2007.
Although my add-in gets included into the list of Application Add-Ins the Add-Ins tab is still not displayed.
Any help is appreciated. Thank you.
Thanks and Regards,
Last Visit: 31-Dec-99 18:00 Last Update: 25-May-17 17:51