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
Photo

running multiple commands without annoying cmd boxes


  • Please log in to reply

#1
justsaying2008

justsaying2008

    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: \\192.168.60.138\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: \\192.168.60.138\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

Advertisements


#2
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,889 posts
Hi,

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