---
title: "How to run a Dos command in Vb.net?"  
description: "How to run a Dos command in Vb.net?"  
author: "Anonymous User"  
published: 2011-11-04  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/1311/how-to-run-a-dos-command-in-vb-dot-net  
category: "vb.net"  
tags: ["vb.net"]  
reading_time: 1 minute  

---

# How to run a Dos command in Vb.net?

Shell("cmd.exe /c c:\first.exe < in.txt > out.txt")

## Answers

### Answer by Anonymous User

Shell("cmd.exe /c c:\first.exe < in.txt > out.txt")


---

Original Source: https://www.mindstick.com/interview/1311/how-to-run-a-dos-command-in-vb-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
