Search found 81 matches
- 07 Jun 2017 21:02
- Forum: DOS Batch Forum
- Topic: SS64 Example for Variable Edit/Replace
- Replies: 5
- Views: 7704
Re: SS64 Example for Variable Edit/Replace
Thanks @penpen ! This works great! Also.. I had no idea about the "::" comments in code blocks. Very cool to know. I wonder if this should be considered as an example in SS64. I'll reach out to them and link them to this thread and see if they want to include it, and if so give you proper ...
- 01 Jun 2017 23:34
- Forum: DOS Batch Forum
- Topic: SS64 Example for Variable Edit/Replace
- Replies: 5
- Views: 7704
SS64 Example for Variable Edit/Replace
Hi all, I know some of you use and some even contribute to ss64 and stackoverflow and probably countless other forums. Well, there is one example in SS64 that kinda has always bugged me that I wonder if someone knows the answer to. The example below has comments explaining exactly what it does. -- C...
- 18 Feb 2016 12:15
- Forum: DOS Batch Forum
- Topic: Setting static IP based on current dhcp for lan
- Replies: 5
- Views: 6638
Re: Setting static IP based on current dhcp for lan
That is the whole point of a DHCP server. It knows what addresses it has allocated. It does not know you set a static IP address within the range of IP address of the pool. Thank you @Squashman as ignorant as it sounds.. I had no idea. I hadn't really thought about it but I guess I probably figured...
- 17 Feb 2016 20:13
- Forum: DOS Batch Forum
- Topic: Setting static IP based on current dhcp for lan
- Replies: 5
- Views: 6638
Re: Setting static IP based on current dhcp for lan
Squashman wrote:You do not want to set a static ip address that is part of a DHCP servers address pool.
why? Is it because the server may assign that address to another computer on the network and cause conflicts?
- 17 Feb 2016 16:24
- Forum: DOS Batch Forum
- Topic: add to a ntp registry, set default WO deleting any other ntp
- Replies: 13
- Views: 15038
[SOLVED!] Re: add to a ntp registry, set default WO deleting any other ntp
Okay so.. I found http://forum.psquared.net/PrintTopic7643.aspx Which has the following code: ECHO Add Time Service registry entries. REG ADD HKLM\SYSTEM\ControlSet001\Services\List /v "123:UDP" /t REG_SZ /d "123:UDP:*:Enabled:NTP Time Service" /f REG ADD HKLM\SYSTEM\CurrentContr...
- 17 Feb 2016 12:39
- Forum: DOS Batch Forum
- Topic: Call BAT-File (which uses as properties.csv ) from JAVASCript/HTML
- Replies: 9
- Views: 13071
Re: Call BAT-File (which uses as properties.csv ) from JAVASCript/HTML
All good, except it doesn't work in a standard web browser. Agreed. I tried it in the most current Firefox with no success. The file path isn't correctly escaped, for starters, but even when I fixed that, all it does is display the contents of the batch file in the browser window. Nothing is actual...
- 16 Feb 2016 21:48
- Forum: DOS Batch Forum
- Topic: Setting static IP based on current dhcp for lan
- Replies: 5
- Views: 6638
Setting static IP based on current dhcp for lan
Hi all, this seems to be something I have to do a lot, manually. Basically I have a cmd window open, I run ipconfig, and then go into the network configuration UI (win 7) to set it as static IP. The process is an annoying amount of steps. Before I go down the rabbit hole and reinvent the wheel..anyo...
- 16 Feb 2016 21:38
- Forum: DOS Batch Forum
- Topic: add to a ntp registry, set default WO deleting any other ntp
- Replies: 13
- Views: 15038
Re: add to a ntp registry, set default WO deleting any other ntp
Hi all.. I thought I washed my hands of this but found out this isn't always working. First let me answer this below: So, I remembered now why I gave up on this before. This bat works if you double click on the bat file or run it using Administrator cmd window. I found an interesting way to do "...
- 26 Sep 2015 05:22
- Forum: DOS Batch Forum
- Topic: add to a ntp registry, set default WO deleting any other ntp
- Replies: 13
- Views: 15038
Re: add to a ntp registry, set default WO deleting any other
So, I remembered now why I gave up on this before. This bat works if you double click on the bat file or run it using Administrator cmd window. However I plan on running this from an .hta file. And neither using .shellexecute "runas" option nor the cmd "runas" makes this work. I ...
- 19 Sep 2015 16:37
- Forum: DOS Batch Forum
- Topic: add to a ntp registry, set default WO deleting any other ntp
- Replies: 13
- Views: 15038
Re: add to a ntp registry, set default WO deleting any other
Sounds like you havent done one of these: - this batch must be "Run as administrator" Running as admin appears to be working. I will test this next week to be sure. Thanks @penpen you raise good points about editing default registry settings which is why I wanted to get other opinions on ...
- 19 Sep 2015 15:20
- Forum: DOS Batch Forum
- Topic: add to a ntp registry, set default WO deleting any other ntp
- Replies: 13
- Views: 15038
Re: add to a ntp registry, set default WO deleting any other
Tested on Windows XP. Works fine. Unfortunately, this will be for Win 7 computers and up. I did come up with this script based on penpen's script and it seems to work on my computer. Going to test this out on a few other computers next week. @echo off setlocal enableExtensions enableDelayedExpansio...
- 18 Sep 2015 12:22
- Forum: DOS Batch Forum
- Topic: add to a ntp registry, set default WO deleting any other ntp
- Replies: 13
- Views: 15038
Re: add to a ntp registry, set default WO deleting any other
Thanks @penpen and @squashman. So.. unfortunately your script doesn't do what I need. The applet doesn't list the time server when you look at the list of ntp servers after running the bat. I'm pretty sure the key to the whole thing lies in the reg export I listed. From looking at this it appears th...
- 18 Sep 2015 10:14
- Forum: DOS Batch Forum
- Topic: add to a ntp registry, set default WO deleting any other ntp
- Replies: 13
- Views: 15038
add to a ntp registry, set default WO deleting any other ntp
I asked this question in stackoverflow http://stackoverflow.com/questions/32555877/add-to-a-ntp-registry-and-set-default-without-deleting-any-other-ntp-servers and unfortunately no one has responded, so then I thought dostips has always helped in the past, perhaps someone knows. I needed to add an I...
- 10 Feb 2015 17:53
- Forum: DOS Batch Forum
- Topic: Need way to set Wallpaper variable??
- Replies: 3
- Views: 5658
Re: Need way to set Wallpaper variable??
Would love to know what you came up with in regards to batch, if it's for Win 7.
- 29 Jan 2015 21:26
- Forum: DOS Batch Forum
- Topic: Need to write a batch file that moves files based on name
- Replies: 12
- Views: 10388
Re: Need to write a batch file that moves files based on nam
@for /D %%a in (*) do @(2>nul move "%%~a*" "%%~a")
what does the "@" symbol do? I tried googling that, I don't get it.