Search found 100 matches

by drgt
03 Sep 2018 03:24
Forum: DOS Batch Forum
Topic: FC error
Replies: 1
Views: 625

FC error

DISREGARD, SORRY, MY BAD.
ISSUED FC COMMAND INSTEAD OF BATCH FILE NAME
by drgt
03 Sep 2018 03:05
Forum: DOS Batch Forum
Topic: FC error
Replies: 1
Views: 625

FC error

Running @echo off set d1=C:\Test\1 set d2=C:\Test\2 echo ----- echo :1 2: echo ----- for /f "delims=" %%i in ('dir /b/a-d "%d1%\*" "%d2%\*"^|sort') do ( call set "$i=%%$i:%%i=%%" if defined $i ( if not exist "%d1%\%%i" (echo :. +: %%i) else ( if not exist "%d2%\%%i" (echo :+ .: %%i) else ( fc "%d1%\...
by drgt
29 Oct 2017 01:22
Forum: DOS Batch Forum
Topic: Temporarily change default browser
Replies: 4
Views: 1253

Temporarily change default browser

Suppose there is a way to do it in registry.

Don' I have to reboot in order for the change to take effect?
by drgt
27 Oct 2017 23:43
Forum: DOS Batch Forum
Topic: Temporarily change default browser
Replies: 4
Views: 1253

Temporarily change default browser

Hi On my stick I have a portable program and a portable browser. Is there a way to write a batch file which will change the default browser to the one on my stick, call the portable program, and upon exit of the portable program, change the default browser to what it was before the change? Thanks Wi...
by drgt
20 Mar 2017 02:57
Forum: DOS Batch Forum
Topic: Enable / Disable LAN
Replies: 9
Views: 2236

Re: Enable / Disable LAN

Suppose I want to edit a desktop shortcut to execute a devcon command before, I simply create a batch file that includes both the devcon command and the shortcut code OR there is a better way?
by drgt
19 Mar 2017 15:10
Forum: DOS Batch Forum
Topic: Enable / Disable LAN
Replies: 9
Views: 2236

Re: Enable / Disable LAN

Thanks!
wouldn't you happen to know its Syntax?

EDIT: This http://ccm.net/faq/1886-enable-disable- ... mmand-line explains it.
by drgt
19 Mar 2017 14:41
Forum: DOS Batch Forum
Topic: Enable / Disable LAN
Replies: 9
Views: 2236

Re: Enable / Disable LAN

I am giving this command in command prompt window. Yes I type it in (or I paste it in). Those are the exact names as they appear. I changed the name to Local_Area_Connection and tried it again with and without quotes. Same thing! Weird indeed. *plus I do not know what local area connections 3 and 9 ...
by drgt
19 Mar 2017 14:21
Forum: DOS Batch Forum
Topic: Enable / Disable LAN
Replies: 9
Views: 2236

Re: Enable / Disable LAN

The syntax supplied for this command is not valid. Check help for the correct syntax. Usage set interface [name = ] IfName [ [admin = ] ENABLED|DISABLED [connect = ] CONNECTED|DISCONNECTED [newname = ] NewName ] Sets interface parameters. IfName - the name of the interface admin - whether the inter...
by drgt
19 Mar 2017 13:51
Forum: DOS Batch Forum
Topic: Enable / Disable LAN
Replies: 9
Views: 2236

Re: Enable / Disable LAN

netsh interface show interface Admin State State Type Interface Name ----------------------------------------------------------------------- Enabled Dedicated Local Area Connection 9 Enabled Dedicated Local Area Connection 3 Enabled Dedicated Local Area Connection Enabled Internal Internal Enabled ...
by drgt
19 Mar 2017 06:28
Forum: DOS Batch Forum
Topic: Enable / Disable LAN
Replies: 9
Views: 2236

Enable / Disable LAN

I tried to use

Code: Select all

netsh interface set interface "Local Area Connection" DISABLED

but I get
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct syntax.


Please help me with the correct syntax.

xp sp2
by drgt
09 Mar 2017 01:19
Forum: DOS Batch Forum
Topic: Setting variables
Replies: 4
Views: 1352

Re: Setting variables

Thank you for pointing that out!
by drgt
07 Mar 2017 03:21
Forum: DOS Batch Forum
Topic: Setting variables
Replies: 4
Views: 1352

Re: Setting variables

THANK YOU !!!
by drgt
07 Mar 2017 02:25
Forum: DOS Batch Forum
Topic: Setting variables
Replies: 4
Views: 1352

Setting variables

In the following batch for /f "delims=" %%a in ('dir D:\Data\Test /a-d /on /b') do ( copy "D:\Data\Test\%%a" "C:\Test" I would like to set the source and target in the beginning of the file. e.g source=D:\Data\Test target=C:\Test and then modify the code accordingly. Co...
by drgt
06 Jan 2017 13:19
Forum: DOS Batch Forum
Topic: FOR command / batch including DIR
Replies: 28
Views: 5645

Re: FOR command / batch including DIR

Thank you all for your contributions!
Happy New Year!
by drgt
06 Jan 2017 11:19
Forum: DOS Batch Forum
Topic: FOR command / batch including DIR
Replies: 28
Views: 5645

Re: FOR command / batch including DIR

Then why the device displays them in alpha order when copied in alpha order and not so when they are copied in the conventional way?