1
vote
0answers
39 views

output to command line from windows gui program

I have a win32 gui based exe which is GDI based - The program accepts command line arguments when it starts, and I need a way to print out a message if the command line is incorrect. At the moment, ...
0
votes
1answer
55 views

Extracting IP from ping into variable in bat script

is there anyway i could do this? @echo off REM #Testing FIND in IPCONFIG setlocal EnableDelayedExpansion for /f "tokens=3" %%a in ('ping localhost ^| findstr /i "reply"') do ( set address=%%a ...
0
votes
0answers
7 views

How do I run SecureCRT with start parameters from command line with Java code in the background?

I can start SecureCRT with Java code below ... public static void main(String[] args) { try { String[] command = new String[4]; command[0] = "cmd.exe"; ...
0
votes
0answers
15 views

PsExec & Process Through C# Not Showing Output

Apparently PsExec is working. This code works. When executed, it never returns errors. But only SOMETIMES does it return output, and when it does return output, it is always~ the first line. And the ...
0
votes
2answers
56 views

bat script working on windows 7 but not on windos 2k8

I have a script which works on windows 7 but not on 2k8 throwing up an exception of file not found. @echo off REM #Testing FIND in IPCONFIG SET VIPTHATWORKS="11.11.11.11" SET ...
0
votes
3answers
34 views

Windows batch script to unzip files in a directory

I want to unzip all files in a certain directory and preserve the folder names when unzipped. The following batch script doesn't quite do the trick. It just throws a bunch of the files without ...
-1
votes
0answers
20 views

Windows making file a folder [migrated]

I accidentally made a backup of folder using "copy folder folder_backup" and got a file called folder_backup. It contains all the bits of the folder. And I accidentally deleted the folder. How do I ...
2
votes
1answer
26 views

Approach to implement Windows cmd communication - multiple commands

I'm trying to find a solution how to implement a multiple command - response interaction with the Windows cmd shell. Example: Start the cmd shell "dir" wait for and Handle input Execute new command ...
0
votes
1answer
27 views

Restore a running application from batch file

I have a Windows Photo viewer opened and minimized. How do I restore it to the foreground from a batch program? I figured out that the application is "dllhost.exe" I tried this command: START ...
0
votes
2answers
41 views

batch file acts differently when launched from within another batch

So... hey guys and gals. I have the weirdest problem. I wrote this batch file which generate a text file My code which for some reason gets really messed up is bellow, you can see a better version ...
0
votes
2answers
27 views

Want to execute command on each file in directory one at a time through batch file windows

I am currently doing this to execute a single command on a particular type of files in directory. COPY *.prn /B \\\\{$PC}\\{$PRINTER} The PC And Printer Part is redundant no need to understand that ...
0
votes
3answers
22 views

Rename files recursively by adding them the folder's name and move them into another folder

I have this: >upperFolder >folder 0 >file 0 >file ... >file n >... >foldern >file 0 >file ... >file n ...and I want this >upperFolder ...
-1
votes
1answer
31 views

file/ data upload on HTTP server in XP [closed]

I need to know is there any command to upload file/data on HTTP (and not FTP) web server in XP based system? I found ' wput 'command but seems it only servers ftp protocol. pls help. thanks in ...
0
votes
1answer
35 views

findstr won't give the correct errorlevel

I've tried almost everything but I can't get the findstr command to work. The code below keeps giving me mbam scannen. @Echo OFF Set ...
-3
votes
1answer
37 views

Force Run Batch As Administrator [closed]

I have developed a batch file to make administrating many windows accounts at the same time very easy and effective. However there is something that I would want to implement if it's possible. I want ...

1 2 3 4 5 61
15 30 50 per page