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)
running multiple commands without annoying cmd boxes
Started by
justsaying2008
, Oct 16 2012 01:56 PM
#1
Posted 16 October 2012 - 01:56 PM
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)
#2
Posted 16 October 2012 - 03:44 PM
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.
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.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users