Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

running multiple commands without annoying cmd boxes

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 3 posts
I have a program that performs several commands on the end users computer. When each command runs, a seperate black box opens up then closes once procedure is complete. ( one for the mapping, one for the copy, one for the opening of word) Is there any way to hide these cmd boxes. Below is the command that I use to map a drive copy a file open in word save, print then close. This works very well for our program besides the annoying black boxes.I do not have this in a script because the ip addresses, drive letters and document names are different each time.

cmd /c net use b: \\\images\data password /user:administrator /P:no & copy b:\col1.DOC c:\omnitmp && (start regedit /s b:\sqlsecuritycheck.reg & mkdir c:\omnitmp & erase c:\omnitmp\* /Q & copy b:\wmerg.csv c:\omnitmp & net use b: /delete & start winword.exe -q c:\omnitmp\col1.doc /mMailMergeToPrinter) ||net use b: \\\images\data /P:no && (start regedit /s b:\sqlsecuritycheck.reg & mkdir c:\omnitmp & erase c:\omnitmp\* /Q & copy b:\col1.DOC c:\omnitmp & copy b:\wmerg.csv c:\omnitmp & net use b: /delete & start winword.exe -q c:\omnitmp\enc.doc /mMailMergeToPrinter /mFileSave /FileExit)
  • 0




    Trusted Helper

  • Malware Removal
  • 4,889 posts

How did you run all that commands? Its a run command with all that commands as a command argument?

I would say to generate a batch file with every command line above and then execute the batch file hidden or minimized.
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP