Microsoft DOS

13K

Solutions

12K

Contributors

Microsoft Disk Operating System (MS-DOS) was an operating system for x86-based personal computers, and traces of it are still found in the Windows operating system. DOS is still used in some embedded systems and for certain legacy 16-bit networks.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am attempting to write an automated uninstall string, same app, multiple versions. I would have preferred to do this via PowerShell but apparently their servers are so old only some of them support it. So I have found a command line way to find the uninstall strings from the registry, but I am not sure how to pass the string to an execute inside of a batch.

reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s /f "OpenSSL" | findstr /B ".*UninstallString"
reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" /s /f "OpenSSL" | findstr /B ".*UninstallString"
0
Cloud Class® Course: CompTIA Cloud+
LVL 12
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

When I run this statement, I get an error that says "%%G was unexpected at this time":
for /F "tokens=2 delims==" %%G in ('WMIC /NODE:"myserver" Service WHERE "Name = 'myservice'" GET State/value') do set CURSVCSTATE=%%G

But, when I run just the WMIC statement, it works fine:
WMIC /NODE:"myserver" Service WHERE "Name = 'myservice'" GET State/value

I'm pretty sure it has to do with the single quote terminating the WMIC command to early, but I can't figure out how to fix it!
0
Dear Experts

Please can someone assist me. I would like to run a batch file on remote machines as an administrator. The batch file is located on a share that is accessible to everyone.

I am  trying to use psexec.

I am trying this but it doesnt seem to be working:

PS C:\Users\navishkars\Desktop\PSTools> .\PsExec.exe \\agent47-pc -u mydomain\admin-navishkars -p password cmd "\\dbnfiles\Software\DB2-ODBCClient\1_clidrivercopyandinstall.bat"
0
We have some upgraded going on some of our web severs.
Till that time we need check many urls manually daily.

I want to write a vb script to check urls if it is up or not and send us status report through mail.

urls address start with https:// and we need to use F5 Token and disable proxy setting to connect those server.

we don't have power shell access as well.

could somebody please help me to write a vbscript or bat script to automate these stuff.
0
How do I pass unicode filenames as parameters via Command Prompt or any other method ?
I have an Exe which I have to call via Command Prompt/ power shell
Applicable to all current OS of windows.


I am using Windows7.

regards

Allan
0

One for the Experts...


31


Good day gentlemen (and any ladies that may also be present among us).

I have a cracking challenge that will tease your expertise.

I have titled this challenge '31' because it is based on a simple game I played as a child.

The game starts with a running total of 0. Two players take turns choosing a number between '1' and '6' which is added to the total. The player who chooses the number which brings the total to '31' wins.

The numbers '1' to '6' are chosen from a pool of four '1's, four '2's, four '3's, four '4's, four '5's and four '6's. Once a number is chosen, it is removed from the pool of available numbers.


Example:

Total = 0

Let's say we have the following numbers available:

1111
2222
3333
4444
5555
6666

Player A chooses say, 5.

Total = 5 (because 0 + 5 = 5)

A '5' is removed from the pool of available numbers so we now have:

1111
2222
3333
4444
555
6666

(Notice there are now only 3 '5's in the pool)

Let's say player B chooses '4'

Total = 9 (because 5 + 4 = 9)

And our number pool now looks like the following:

1111
2222
3333
444
555
6666

If any set of numbers '1' through '6' is exhausted then that number cannot be chosen in subsequent turns.


Programming Considerations

The program must be written using only DOS commands as a .BAT or .CMD
0
Need solution in UNIX for below scenario.

I have a folder like /desktop/user/folder with the below files in it. I want the count of the files after removing the timestamp from the files.
Need more of a generic solution which can handle any timestamp format and file format.

test_file1_20110101.txt
test_file1_20109102.txt
test_file2_20110102.dat
test_file2_20110103.dat
test_file2_20110104.dat

Expected Result:
test_file1    2
test_file2    3
0
Hi, I did some WMI troubleshooting on a Win10 Pro that was having trouble with the SCCM client installation.
After running the WMIDiag.vbs script from the WMI Diagnosis Utility 2.2 DL link (https://www.microsoft.com/en-us/download/details.aspx?id=7684), I ran this on an elevated command prompt:

dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s

I didn't notice that I was currently in the C:\Windows\System32 directory instead of a level deeper, in wbem. My bad.
I got the following output:

===========================================================================
C:\Windows\System32>dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s

C:\Windows\System32>mofcomp psmodulediscoveryprovider.mof
Microsoft (R) MOF Compiler Version 10.0.10240.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: psmodulediscoveryprovider.mof
MOF file has been successfully parsed
Storing data in the repository...
Done!

C:\Windows\System32>mofcomp RestartManager.mof
Microsoft (R) MOF Compiler Version 10.0.10240.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: RestartManager.mof
MOF file has been successfully parsed
Storing data in the repository...
WARNING: File RestartManager.mof does not contain #PRAGMA AUTORECOVER.
If the WMI repository is rebuilt in the future, the contents of this MOF file will not …
0
I have a macro express pro app that I want to keep running in the background when my computer is on. For some reason, it stops functioning and terminates. But I don't know that until I go to call it up and I have to restart it. Also, it supposed to run at startup, but maybe windows doesn't like it, so it does not start with the other apps at startup. How do I use the task scheduler to make sure it starts at startup and also to check that it is running and if it is not running to relaunch it. the default path to the app is "C:\Program Files (x86)\Macro Express Pro\MacExp.exe" default directory is "C:\Program Files (x86)\Macro Express Pro"
0
Hi Experts,

We are changing our servers to virtual servers, and for protection sake our IT doesn't want map drives to our data server, therefore for getting access I would need to type \\MyServerName and this would always prompt me for a user name and password.

How do I program these settings in Access?

Also we currently have some data residing in SQL. and currently have DSN files storing all connection info, and in Access linked table manager we just point to that DSN.

How will all these get accomplish w/o saving a DSN locally?
0
Cloud Class® Course: Microsoft Azure 2017
LVL 12
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Hello,
 I try to use the winscp.com command line with the pageant.exe tool.
 The goal is to bypass any question related to my password.
 I know the pageant.exe; it works very weel with the putty.exe and plink.exe.
 What is the exact syntax for the command line ?

 I try the 2 command without success :

 winscp.exe /ini=nul sftp://root@hostname /privatekey=path\file.ppk /script=path2\command_script.cmd /log=path3\log_file.log

 winscp.exe /ini=nul /script=path2\command_script.cmd

 ...considering that the "command_script.cmd" include the path for the SSH Key (ppk), starting by a "open" Again, the script ask me to provide the user Root password. It seems that it doesn't recognize the PAGENT process

 Regards,
0
Most of my work involves video editing.
The folders (Dir) where I keep originals, copies, pre/post-edit files and so forth are all set with the following "sort" attributes (columns):
Name - Length - Size - Frame Width - Frame Height - Data Rate

For each new folder I create or Copy/Move I have to redo all these attributes again, specially when I copy a folder since it always seems to default back to:
Name- Date Modified - Type - Size or similar values.

You can imagine the amount of time & effort required to do this for all new or copied folders..
I've tried every conceivable syntax with Robocopy and cant get it to work for these reasons:
1. When I open CMD it defaults to the current User, which does have Admin rights, but I can't get Robocopy to work with the "COPYALL" or any other syntax other than "\e" and that only gives me a copied Dir/sub-Dir again with default values..
2. When I open CMD and "Run as Admin" it goes to C:\ .. which is fine, except the DIR Im trying to copy shows as "Cannot find path specified" ..

The main Dir Im trying to work with is located:
C:\Users\AV Masters\Video\Edits
I created 2 test folders (DIRS) under \AV Masters\ .. called AVTEST1 and AVTEST2
AVTEST1 contains a sub-Dir named "AV" which contains some sample videos to test this copy process..

What I'm trying to accomplish:
Create one main folder (Dir) with a sub-Dir that contains the video files I want..
Whenever I need to create a new folder/Dir somewhere or copy an …
0
No comments, but we're still running WordStar v.7 as our main word processor. We operate the 32-bit version of Windows 10, and we physically print letters from WordStar via a PCL driver (mapped to shared Windows printers). This works fine with all of our printers except one - our Canon iR4570 copier.

Our main copier has just gone to the wall, so we're down to only one LaserJet that can carry out this function. Obviously I want a bit more redudency than this.

We run Wordstar as a legacy app through the ntvdm.exe process we've installed with Windows 10 32-bit. If I send a print job via PCL to the iR4570 it generally never prints anything, and the touch-screen concole becomes unusable. It is like it is running a corrupt process that is consuming all memory and/or CPU cycles . The only way to recover is to physically switch the iR4570 off.

On very rare occasions, it does start printing, but just junk text comes out - either filing the page, or just a couple of letters at the top of each page. It'll print until the trays are empty.

If I print to the iR4570 via PostScript from Wordstar, it is absolutely fine. HOWEVER, PostScript fonts are slightly bolder, and it doesn't look quite right for our requirements.

The iR4570 has a pretty much identical firmware to our other copier that went to wall, and which handled this all fine with PCL printing, day in day out, until it's demise. I'm hopeful there is something just not right in the settings I can flush out - but before…
0
Use the "Route ADD" cmd , tried to router from router's wan mac and IP , got ''Not recognized command ? ''

Computer client would be allowed  to router from wan ip by table added ?
0
I need to set permissions on multiple computers so that the permission will not affect the folder or subfolders but the inheritance will still apply to the files within those folders.

ex:  c:\temp\scratch\sub\ needs to have permissions applied so that users can't delete either the "scratch" or "sub" folders but can add and delete files within them.  

According to Microsoft you need to use the "OI" and "IO" commands together but they don't give examples, any examples I've found online don't appear to work.   It should read something like "cacls c:\temp\scratch /G everyone:(IO)(OI)(C).  I've also tried the icacls version with no success, I've also tried only using the "C" (change) permission without the IO & OI but the folder can still be deleted.

Has anyone gotten this to work?
0
Please see PDF attached for plugin requirement. I'd like to deploy this to remote machines using PSEXEC. Can an Expert
please provide me the commands I need to execute? I'd like to also configure the command to produce a file (txt or whatever) that will give me the results of the deployment whether it deployed successfully or failed.  Can you please provide me the commands using my scenario below:

1. Executing PSEXEC from Server1
2. Plugin install (.exe) located in root of C:\ on Server1. Plugin file name "Workfront.exe"
3. I've created a .txt file in the root of Server1 name "computers.txt", which contains the remote hosts for my deployment.

This install needs to be silent. I believe it is necessary for the machine to reboot in order for the plugin to install. I tried a manual install, and a reboot was required. Maybe you Experts can tell by viewing the PDF requirement.
Workfront--Setting-up-the-WorkFront-.pdf
0

Microsoft DOS

13K

Solutions

12K

Contributors

Microsoft Disk Operating System (MS-DOS) was an operating system for x86-based personal computers, and traces of it are still found in the Windows operating system. DOS is still used in some embedded systems and for certain legacy 16-bit networks.

Top Experts In
Microsoft DOS
<
Monthly
>