NETSH Commands Not Working From Batch File

Aug 20, 2013

I'm trying to create a NETSH batch file that sets my TCP/IP settings to DHCP.

The line I want to use is:

netsh interface ipv4 set address name="My Custom Named Network" dhcp

If I run the global cmd prompt and paste this line, it works as intended. However, if I create a batch file with the same line, I get "The filename, directory name, or volume label syntax is incorrect".This is bugging me plenty.

View 9 Replies


ADVERTISEMENT

Running Batch File In Windows 8.1?

Jul 8, 2014

I accidentally set the file open of .bat files to Notepad. From a link in this forum (How to Restore Default File Extension Type Associations in Windows 8 and 8.1)was able to reset the registry back I think. The bat file not longer asks for notepad but instead opens "How do you want to open this file" and ask me to look for an app. The batch files still do not run.

View 8 Replies View Related

MS-DOS Batch File - Choice Command For Windows 8

Jan 3, 2014

I was browsing around and attempting to build a program with MS-DOS. I can't get the choice command to work in Windows 8, and I have browsed the internet searching for the problem and a solution. It seems that Microsoft has removed Choice from Windows 8 supported commands. Is there any way possible I can make this work? I also own a Windows XP desktop and I can make the codes on it, but I can't get them to run on Windows 8?

View 1 Replies View Related

Batch File Utility To Create Ad-hoc Network

Feb 4, 2013

New Version (6/2/13)

- Changed name to Connec8
- Compiled as exe. This is for the sole purpose to force Administrator privileges on double click
- New icon
- Administrator privilege check on startup.
- Added option to restart the previous hotspot
- Implemented an easier way to enable Internet sharing
- Added blank lines for better readability

Download (dropbox) [URL] ....

Windows 8 is awesome. However it doesn't have the ability to create ad-hoc networks from Network and sharing center. The only way is to use netsh utility from CMD every time you want to start or stop your network. .

So I created a batch file to automate this process. All you have to do is to start it as administrator, follow the instructions and voila!. No need to open cmd again and again

This utility creates an adhoc network. You can use it for streaming Videos and Music or playing LAN games.

For Internet sharing aka Hotspot
Go to Network and Sharing Center –> Change adapter settings
Right click on the device which is connected to internet and select Proerties
Now, open Sharing tab, enable Allow other network users to connect through this computer’s Internet connection, and then choose the newly created ad-hoc connection from the list

View 1 Replies View Related

Can Create System Restore Point From Batch File Or Powershell?

Nov 9, 2012

Since Windows 8 is not creating System Restore points, apparently because I have a dual boot Windows 8 / Windows 7 setup, I'd like to schedule one every 3-4 days or so.

Is there any way to run system restore from Command line or batch file or Powershell? If so then I could schedule it to run when I want.

View 1 Replies View Related

Shell Commands List In Windows 8

Dec 10, 2013

I just stumbled upon this list of Windows 8 shell commands:

Shell Commands in Windows 8

As example you can enter this in the Run line to open Quick Launch folder:

shell:Quick Launch

View 9 Replies View Related

Command Used To Make File System And Hidden File No Longer Working

May 29, 2014

The attrib +s +h command that is used to make a file a system and hidden file is no longer working. When i try to use the command on a folder, the folder just shows up as a normal hidden folder which can be easily viewed using show hidden items in view option. It looks as if every system file is not recognizing itself as a system file.

Also every folder in my system has appeared a desktop.ini and thumbs.db folder.

I am running Windows 8- 64 bit

View 1 Replies View Related

Network / Sharing :: Netsh Cannot Find Loop-back Adapter Anymore After Update

Jan 20, 2014

for a while I've been using netsh to add some IP addresses to the standard windows loopback adapter (interface idx=1) which worked fine until today when I ran windows update.

I have always used this command to assign my loopback adapter an extra IP:

netsh int ip add addr 1 address=111.111.111.111 mask=255.255.255.0 st=ac

(using an example IP address)

But since installing the updates, this returns the following error message:

Failed to configure the DHCP service. The interface may be disconnected.The system cannot find the file specified.

However, when I do "netsh int ip show int" it clearly shows the following interfaces:

Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
3 25 1500 connected Wi-Fi
4 5 1500 disconnected Local Area Connection* 2

and it's not disconnected at all. The only fix I have found so far was reinstalling windows 8.1 and not installing any updates... I just installed the updates again and it stopped working.

View 2 Replies View Related

String Comparison In Batch Script

Jun 14, 2014

I am attempting to write a batch script that uses a program called Mailsend to send an email. The script then examines Mailsend's log output to determine if the email was successfully sent.

This is what I have so far:

Code: mailsend1.17b14.exe -to <snip personal info> -log temp.txt -attach test.txt.TailTail -1 temp.txt > temp2.txtDel temp.txtSet /p Message=<temp2.txtSet Message=%Message:~26%Set Cmess=Mail sent successfullyEcho %Message%Echo %Cmess%If "Message"=="Cmess" ( Echo Correct ) Else ( Echo Wrong )

Here is a rundown of what I am doing:

-The first line sends the email.
- The second and third use a program called Tail to delete all lines except the last one from the log file (the last line contains the output I'm looking for).
-The next 2 lines then assign the contents of the log file to a variable then truncate the first 26 characters (date and time info that I don't need).
-The next line creates a second variable that contains the desired output (i.e. "Mail sent successfully")
-The next two lines echos the contents of the variables.
-And finally, the last line compares the two variable and takes a particular action depending on whether the two variables are equal or not.

The comparison at the end is where I'm having problems. Every time I run the script, the last line I get printed on the screen is "Wrong" (i.e. the "Echo Wrong" command is executed meaning "Message" does not equal "Cmess"). This happens even when the email was sent successfully. I've tried various things and I haven't managed to get the "Echo Correct" command to ever execute, even when the output of the two Echo commands just before is exactly the same. I've even tried changing the "Set Cmess" line to:

Code: Set /p Cmess=<temp2.txt Set Cmess=%Cmess:~26%

And the output for the comparison is still "wrong". I can only think that there must be something wrong with how I structured the comparison.

How to get this script to work or script means of checking the log file for "Mail sent successfully"? This is what the log file contains if an email gets sent successfully:

Code: 07-Jun-2014 08:17:28.172: mailsend v@(#) mailsend v1.17b1407-Jun-2014 08:17:33.011: Mail sent successfully

View 6 Replies View Related

Batch Move Multiple Files Via CMD?

Jun 10, 2013

I have: x4 .gif images, x14 .jpg images, and x5 .png images in my Code: C:UsersSampleUserDownloadsimg14

folder and want to move them to these desired locations via cmd.

Move the x4 .gif images to: Code: C:UsersSampleUserDownloadsimg14.gif

Move the x14 .jpg images to: Code: C:UsersSampleUserDownloadsimg14.jpg

Move the x5 .png images to: Code: C:UsersSampleUserDownloadsimg14.png

Any way I can go about this using a single command? Multiple commands will work just fine as well, as long it's not one too many commands.

OS: Windows 8 Enterprise x64

View 4 Replies View Related

Network / Sharing :: Netsh WLan Hosted Network Fails After Sleep

Mar 23, 2013

Windows 8 64. To date all my networking needs are just fine

Though I do have just one last loose end to tie up with the adhoc wifi it just fails after sleep.

View 1 Replies View Related

Gaming :: Freeze While Gaming - DSIM Commands Show No Errors Neither BSOD

Jun 17, 2014

I am having some problems with 3 years old PC. Only while playing games (Civ 5 - Heroes & Generals - Rise of nations) I suffer from freeze/crashes, PC doesn't show a BSOD, the mouse pointer works normally it doesn't freeze (until I try to alt+tab or alt+ctrl+del), and from my speakers I can hear looping sounds.

The only thing I can do is a hard reboot. I try reinstalling windows, and the problem still exists.My BIOS, drivers* and OS are update, I perform a memtest for 6 hours and show no errors, I can run prime95 + kombustor and everything is fine, no temps problems, GPU never go over 68c and CPU at 58c, and no crashes.

DSIM commands show no errors neither.

*I tried latest NVIDIA drivers, and old ones, im actually using 334.89 version, and the problem persist.

View 7 Replies View Related

File Explorer Not Working Properly?

Jan 30, 2013

my windows file viewer has an annoying bug. When I double click a folder it opens in a new tab, every time. I've tried going to >view>options>change folder and search options but it says that they should open in the same window.

View 9 Replies View Related

Maintenance :: Win 7 File Recovery Not Working In Win 8 OS

Feb 18, 2013

When I open Win 7 file recovery in control panel it flashes open momentarily and then disappears.

View 4 Replies View Related

File Search Not Working In Dropbox

May 1, 2013

I have a folder in dropbox with sub folders and in those folders are many .txt's.

e.g. Dropbox/Folder1/File1 - KEYWORD.txt

BUT when I go to Dropbox and run a search for *- KEYWORD.txt it shows absolutely no results.

Under Search Options Tab I have:
1) Enabled search in sub folders.
2) Allowed Partial Matches.

How to find all the KEYWORD.txt files in the sub folders?

View 9 Replies View Related

Copy Path In File Explorer Not Working

Mar 3, 2013

I was thrilled to see MS finally added the "copy path" function to the ribbon. To my dismay, it has suddenly stopped working. I can't think of any significant changes I've made to my system (no clipboard extenders recently added, etc.). If I use the SHIFT+right-click copy as path shell extension it works fine.

HP Envy h8-1420t
intel i7-3770k 10 GB RAM
Windows 8 Pro x64

View 2 Replies View Related

File Explorer Not Working Correctly With 8.1 Update

Apr 20, 2014

Yesterday, while using File Explorer a problem occurred. I had a CD open showing files on the CD and I had a folder open (that is on my desktop) and was copying files from the CD to the desktop folder. I am not sure what I may have done, but after closing the File Explorer, it is no longer working correctly. When I left click on the folder icon on the taskbar on my desktop nothing is shown on my desktop. The taskbar icon shows that File Explorer is open and if I hover my cursor over it, a 'mini' is shown (just above the taskbar) of what is open, but will not expand to view on the desktop, just shows the 'open' page above the taskbar. If I open WORD or some other program and try to 'saveas' the files are shown and I can save the document. I down loaded a "file manager" from the Microsoft Store so I can get at and work with files, but I am not able to use the Win 8 File Explorer. I have done a normal shutdown and restart, but still have the problem. I tried to do a system restore, but the restore would not complete. (suggested I turn off antivirus).

View 9 Replies View Related

Windows Program File Association Settings Not Working

May 31, 2014

I recently found many application would not save to correct type. Some software icons would come out to a blank or white block, but those software actually there. For example, realrecorder is running, it would come out a white block on taskbar on bottom. I tried use 'access and program default' in control panel, still not fix the issue. Ms word, and word pad also come out white blank icon.

View 5 Replies View Related

Hardware Drivers :: USB 3.0 Not Working In Windows 8.1 - Cannot See File Explorer

Nov 4, 2013

I've read a number of other users' problems with USB 3.0 not working, but mine is different!

I have an AS US CM 6870-us 012 s desktop, currently running Windows 8.1 (originally downloaded from the Store, but I recently purchased a retail full-install version to see if I could correct the many problems). It has several USB 2.0 and USB 3.0 ports in front - the USB 2.0 ports work fine, but the USB 3.0 ports SORT OF WORK (but they don't).....

When I plug in a USB 3.0 external drive (Western Digital My Passport), I hear the brief music indicating Plug-n-Play connection occurred (the USB 3.0 end was inserted into the USB 3.0 port). However, I don't get a drive letter assigned, nor do I see it in File Explorer, nor do I see it registered in AS US's AI Suite II/System Information/Disk......but I DO see it in Disk Management (without a drive letter - just Disk 5)!

There are no problems appearing in Device Manager, nor in any item related to USB (none anywhere, nadda, zip, zero) - every thing is working, so when I look for hardware errors (running Hardware Troubleshooter), none are found. When I look at AI Suite II software to un-install Boost 3.0, there is no Boost 3.0 shown that I can disable or un-install, as others have done to correct their problems.

I tried a full install of Windows 8.1 and have the exact same result, yet when the system was originally running Windows 8.0 (that came on the PC), everything worked perfectly!

View 9 Replies View Related

Windows Program File Association Settings Not Working Correctly?

May 31, 2014

I recently found many application would not save to correct type. Some software icons would come out to a blank or white block, but those software actually there. For example, realrecorder is running, it would come out a white block on taskbar on bottom. I tried use 'access and program default' in control panel, still not fix the issue. Ms word, and word pad also come out white blank icon.

View 7 Replies View Related

Question: How To See Libraries In File Save / File Open Form

Feb 3, 2014

How to make the 'Libraries' folder structure appear when doing a file open file save. In both case I can see the folders labeled Desktop, Documents, Downloads, etc. but I cannot see the Libraries folder.

Is this possible? How?

View 10 Replies View Related

Maintenance :: Windows 7 File Recovery And File History Both Active?

Feb 9, 2013

I don't know how I did it but I got both Windows 7 File Recovery and Windows 8 File History active at the same time. I upgraded from Win 7 to 8 Pro and transferred settings so win 7 file recovery was already active, when I tried to turn on win 8 file recovery I got a message saying I cant because win 7 FR was active. So I deactivated win 7 FR then activated win 8 FR, for giggles I went back and turned on win 7 FR and it worked. Now I have both active, from what I have read this was not possible. Did I break my OS or am I just lucky?

View 3 Replies View Related

Maintenance :: Windows 8.1 File History File Duplication?

Oct 30, 2013

In Windows 8.0 File History, it had the nasty habit of duplicating your library files on your backup ( in my case, my external USB backup drive ( Replica 2 Terabyte ). By DUPLICATING, I mean they get copied over and over and over again... This happens to ALL of them, even though you have not touched the majority of them for YEARS. (File History is suppose to copy them over the FIRST time, then copy a new copy with a new name (old name plus date) if you edit the file in any way). I turned of file indexing on ALL my drives, except my C: drive, to see if that would stop it ( this is recommended in many threads on other sites ).

View 1 Replies View Related

File Explorer Zip File Icon Under Share Tab Not Active

Dec 29, 2012

When in file explorer the zip icon under the share tab is not active. When I click on a simple folder, it does not highlight. If I right click on the folder and go to send to all I get is the dvd drive unless I shift right click first then a drop down of more selections appear but not send to compress. Is this something that need to be activated. I can un-zip a fle from the view tab.

View 4 Replies View Related

Apps / Software :: Set Compatibility On Exe File Regardless Of File Location

Jun 3, 2013

I have an issue running a program that is contained in a self extracting zip that is supposed to run automatically.

The SFX files unzips the contents to a folder on my hard disk (no problem), but then tries to run another program (installer.exe) that is located in the extracted folder.

The program fromm inside the SFX runs fine if I set the compatibility to XP manually, but the problem is that the the SFX extracts the files to a different location each time it is run.

Is there a global way to make a program (installer.exe) run in compatibility mode wherever it exists?

View 4 Replies View Related

Added Exe File To Startup But File Not Running At Start Up

Dec 20, 2013

I have been trying to add a .exe file to my Startup files. But for some reason the file does not run at the start up.Take a look at the screenshot to see the setup. cW8oETE.png

The paths which I did use are:

C:UsersDyonAppDataRoamingMicrosoftWindowsSt art MenuProgramsStartup
C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup

Is there another way to add files to the Windows 8.1 Startup files? I have done some research on Google but did not find anything.I have also tried adding a key to the register which did not work either.For the registery I have used both using the direct .exe and the .lnk file. wYMGhdU.png

View 4 Replies View Related

File Format For Backup File In Windows 8?

Dec 18, 2012

I tried searching it on Google but didn't find anything, the backup file created in XP and Win7 is saved with .bkf file extension,

I want to know the same for the file history in Windows 8, what's the extension or the files are simply saved in the same directory structure with same file extensions as originals,

View 3 Replies View Related

Windows 8.1 - Have File Type At The End Of File Name?

May 14, 2014

Turned the PC on this morning and all my files (audio , picture and video) now have the file type at the end of the file name so instead of cars42 it reads cars42.mpg same for all other file types, Why?

Also, had 2 new desktop icons "Desktop.ini" which open in wordpad as some directory log. But now every folder now contains a desktop.ini file some have thumbs.db file. Also, "This PC" has several device driver icons appeared which are empty but ask for a disc to be inserted, they read ie: CF/MD (E and SM/xD (F, aswell as a G: and H: ...

I have not changed any file specs, it just appeared today. I have many thousand files and need them to be short for work, i don't want the added .mpg,.jpg, .mp3 etc added. Do i just system restore? How did this all happen though, Was it an update? Also, Another seperate issue my PC takes several minutes to shut down though this has happened for most of the time i've had this PC which is only 3 months.

Using Windows 8.1 on XPS 8700, how do i solve it? how to prevent it?

View 5 Replies View Related

File Explorer Sort File Names With Sub-Folder Names

Aug 1, 2014

Is it possible to sort a folder's contents with both File names and Sub-Folder names intermixed? I have projects in sub-folders, and 'support' files like this:

projabc (sub-folder)
projabc.txt (file)
projabc.bat (file)

amongst other projects. I would like all the 'projabc...' items to appear together.

View 1 Replies View Related

Headphones Not Working?

Mar 30, 2013

Well my speakers do produce sound , but my headphones do not produce even the smallest amount , NOTHING. In windows 8 professional they don't work , but in windows 7 ultimate they do work... Maybe the headphones driver? I've got TURBO-X headphones , they have got 2 jacks or cables i don't know , one orange for michrophone (which works) and one green for the headphones also USB one for vibration which is optional for their work :

View 1 Replies View Related

Libraries Not Working?

Jul 27, 2013

Idk what caused this, all I know is that I can still access my documents In Windows8_OS (:C)

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved