|
I used to be able to write bat files in my sleep. now, they are a fuzzy memory. Ok here's the deal, I need a something that I an run on start up or execute via executable, It will open a folder and merge about 50 different .reg files into registry, how ever, I want it to run silently, and no confirmation other then completion.
I am sure I can put the files in a .dat and insert from there. any ideas on what I should use?
Throw me a bone. Flame me. I don't mind, as long as you don't mind getting flamed, torched, nuked, back.
|
|
|
|
|
Jason Sani wrote: Ok here's the deal, I need a something that I an run on start up or execute via executable, It will open a folder and merge about 50 different .reg files into registry, how ever, I want it to run silently, and no confirmation other then completion. I am sure I can put the files in a .dat and insert from there. any ideas on what I should use?
Write a bat-file? Make a list of all the filenames using the dir-command is a matter of looking up the switches. As is importing a reg-file in the registry; KB 82821[^]
regedit.exe /s myregfile.reg
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
First, this has nothing to do with Windows Forms.
Second, you can use the REG IMPORT command in a batch file to import each .reg file. just open a CMD prompt and type REG IMPORT /? for more info.
|
|
|
|
|
Put this into your batch file:
for %%a in (*.reg) do regedit.exe /s %%a
That should merge all files that end with ".reg".
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Can anyone post a small wpf project with a simple database table having SAP crystal report? Project must be made in visual studio 2010.Thanks to all.
|
|
|
|
|
This is not a valid question, no one is going to provide you with a working project on demand. Go and search the CodeProject articles[^] for sampl tutorials and code.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I'm working on an existing WinForms application and I am having some weird issues with Infragistics controls in a WinForms app.
When I open a form or usercontrol in the project that has Infragistics controls on it, it looks like this.[^].
I cannot access any of the controls in the design surface. Clicking does nothing. And, all of the controls appear in the lower area.
So I created a new test solution and dropped some Infragisstics controls on and got this[^].
Anyone know what's going on?
If it's not broken, fix it until it is
|
|
|
|
|
You paid big $ for Infragistics; why not use their support forums for this type of question.
I'd try and help, but I don't use Infragistics controls.
best, Bill
~
Confused by Windows 8 ? This may help: [ ^] !
|
|
|
|
|
Hi
I need some pointer withe following process
1) having a .bat file kicked off by the creation or the
Change whitin a .txt file
2) the bat file will then cut the data whitin it
And paste it on excel worksheet
Any pointers with this or what technology to
Look at e.g object linking (I think object linking
Invokes Microsoft products)
Would be helpfully
Thanks in advance
|
|
|
|
|
Sure you can invoke Excel trough a batch file but you would not be able to interact with the Excel instance. This sounds more like you want a regular application using a FileSystemWatcher and Excel interop. Or, you might be able to do this from a PowerShell script.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
For Excel Interop do I need VIsual Studio
|
|
|
|
|
Well you certainly need some compiled program.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Is there any way to convert .docx to .pdf, if MS Office not installed on machine??
|
|
|
|
|
Yes, install and use OpenOffice
(To CP members: I know this is my second recommendation to use OpenOffice in so many minutes, but I'm not a spammer. I promise! )
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
Hello Andrei,
Thanks for your reply.
Could you please provide me some example??
Thanks In Advance.....
|
|
|
|
|
Member 8574327 wrote: Could you please provide me some example??
No, there are a few well documented ones on the Internet. Google is your friend
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
I've got a datagridview with a column header row and some content rows that have top borders, and some content rows that don't.
When I scroll the grid, rows that have a top border don't collapse into the column header border and I end up with a double border.
What's the easiest way to collapse the border being scrolled either up or down? (Some events fire in only one direction).
|
|
|
|
|
I'm working with an Infragistics UltraGrid. The Add Row "*" thing is not appearing. Anyone know how to get this to show up?
If it's not broken, fix it until it is
|
|
|
|
|
There are two solutions given here[^]. One of them might help you.
|
|
|
|
|
maine kunjvihar se vada pav liya lekin usne chatni kam di aur bola k kande ka price jyada ho gaya hai kar k tereko chatni milni hi nahi chahiye thi ehsan maan maine de diya
|
|
|
|
|
This is an English speaking site. It really helps to posted your question in English if you expect an answer.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Yes. And I want two of them. With mayonnaise.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hello Sir/Mam
I'm trying connect sql server 2000 in windows service with other system on same network.
there are 4 system connected without any problem. But on other 4 system, it is giving error
on connection open while starting windows service. The error is: "the service on local computer started and then stopped some services stop automatically" etc. Same Connection string working in web service
without any error. But giving problem in Window Service. Is there any Configuration setting of that server or sql server 2000. Any help will be highly appreciated.........
|
|
|
|
|
Are you, by any chance, using a trusted connection? When you install a service it, by default, is installed using a specific account - and that account might not be trusted by your database.
|
|
|
|
|
Could be that, could be a firewall, could be something else.
Before trying to fix it though I'd introduce a minimum of logging in the service so in future you don't have to stare blindly at that nearly information-free message: "the service started, and then stopped unexpectedly".
It's also nice to have the ability to debug service initialization. To do this, introduce a config setting and put a method like this into your service class:
static void AwaitDebugger()
{
string s = ConfigurationManager.AppSettings["debug"];
if (s == null || s.ToLower() != "true") return;
DateTime until = DateTime.Now.AddSeconds(30);
while (DateTime.Now < until && !Debugger.IsAttached)
Thread.Sleep(50);
if (Debugger.IsAttached)
Debugger.Break();
}
Now in the service main thread, just insert a call to this method before doing anything else. (Not in the start method that probably simply starts the main thread; you want this method to return immediately as before. But in the thread it starts, you want to wait for a debugger to attach if so configured.) Build, deploy, and debug!
|
|
|
|