Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by cpatte7372
at 2024-07-17 02:14:06
Point:500 Replies:12 POST_ID:829002USER_ID:11901
Topic:
Network Routers;;
Hello Experts,
I've getting support from Solarwinds on how to Execute an external program from an executable file, see
https://thwack.solarwinds.com/message/243299?et=watches.email.thread#243299
I have been told to create a bat file from my exe, however I don't know how to create a batch file from an exe.
Can someone please show me.
Regards
Carlton
I've getting support from Solarwinds on how to Execute an external program from an executable file, see
https://thwack.solarwinds.com/message/243299?et=watches.email.thread#243299
I have been told to create a bat file from my exe, however I don't know how to create a batch file from an exe.
Can someone please show me.
Regards
Carlton
Author: cpatte7372 replied at 2024-07-17 07:30:20
I can get the batch file to work.
However, I can't get it to work with the program in Solarwinds.....
However, I can't get it to work with the program in Solarwinds.....
Author: cpatte7372 replied at 2024-07-17 05:58:47
duncan,
Going to try now...
Guy, no worries mate.
Going to try now...
Guy, no worries mate.
Expert: Guy Hengel [angelIII / a3] replied at 2024-07-17 05:48:33
sorry, ANSI , not ASCII...
what I suggest alternatively is to use another text file editor
what I suggest alternatively is to use another text file editor
Expert: duncanb7 replied at 2024-07-17 05:48:14
could you try this first without vps file ?
"C:Program FilesVanDyke SoftwareSecureCRTSecureCRT.exe"
"C:Program FilesVanDyke SoftwareSecureCRTSecureCRT.exe"
Author: cpatte7372 replied at 2024-07-17 05:45:43
Chaps,
I managed to create a bat file with the following:
"C:Program FilesVanDyke SoftwareSecureCRTSecureCRT.exe" /Script C: empScript.vbs
I saved the file with Unicode. However, it won't execute in the program from the link I showed you above.
Guy, are you suggesting this still needs to be save in ascii? Even though I can get it to work from cmd prompt?
Cheers
I managed to create a bat file with the following:
"C:Program FilesVanDyke SoftwareSecureCRTSecureCRT.exe" /Script C: empScript.vbs
I saved the file with Unicode. However, it won't execute in the program from the link I showed you above.
Guy, are you suggesting this still needs to be save in ascii? Even though I can get it to work from cmd prompt?
Cheers
Author: cpatte7372 replied at 2024-07-17 05:42:56
Hi Guy,
The options I have are:
ANSI
Unicode
Unicode big endian
UTF-8
I don't have the ascii format.
Regards
The options I have are:
ANSI
Unicode
Unicode big endian
UTF-8
I don't have the ascii format.
Regards
Expert: Guy Hengel [angelIII / a3] replied at 2024-07-17 04:27:13
this sounds like the file is saved "unicode", and should be saved "ascii" or vice-versa
when you do a save as, please check which encoding you put.
this said, I have already seen a couple of times that notepad may put a "strange" character in the beginning of the file, in which case you need to use another editor (ultraedit, notepad++, just to name the ones used here ...)
when you do a save as, please check which encoding you put.
this said, I have already seen a couple of times that notepad may put a "strange" character in the beginning of the file, in which case you need to use another editor (ultraedit, notepad++, just to name the ones used here ...)
Expert: duncanb7 replied at 2024-07-17 04:23:45
just example, since you might not have excel.exe at that directory,
try your own example such as notepad
@echo off
:Start
notepad.exe
try your own example such as notepad
@echo off
:Start
notepad.exe
Author: cpatte7372 replied at 2024-07-17 04:21:15
duncanb
I created the following bat file as you suggested but didn't work.
@echo off
:Start
"c:program files (x86)microsoft officeoffice12excel.exe" C:UsersPattec01Documents heone.xls
When I run it I get the message:
'■@'
Not recognised..
I created the following bat file as you suggested but didn't work.
@echo off
:Start
"c:program files (x86)microsoft officeoffice12excel.exe" C:UsersPattec01Documents heone.xls
When I run it I get the message:
'■@'
Not recognised..
Author: cpatte7372 replied at 2024-07-17 04:10:00
duncanb7
Going to try your suggestion now....
Cheers
Going to try your suggestion now....
Cheers
Expert: duncanb7 replied at 2024-07-17 02:41:00
Open file called example.bat and put the following code into it that will call Microsoft office Excell "excel.exe" program to open example excel workbook
and save it and open command prompt shell and run example.bat
Hope understand your question completely.if not, please pt it out.
Duncan
and save it and open command prompt shell and run example.bat
Hope understand your question completely.if not, please pt it out.
Duncan
@echo off:Start"c:program files (x86)microsoft officeoffice12excel.exe" c:yourexmaple.xls 1:2:3:
Expert: Guy Hengel [angelIII / a3] replied at 2024-07-17 02:30:56
you cannot transform a .EXE into a .BAT file.
.BAT file is basically just a text file containing command line scripts, while a .EXE is compiled machine code...
what you CAN do is have a batch file that calls the .EXE, eventually with arguments
what you CAN do is write an application (and compile it into .EXE) that does write .BAT files
what I understand for the linked page is the first one: have a .BAT file to call the .EXE file
possible with START (http://ss64.com/nt/start.html) but you can also call it directly.
the batch file can be created with a notepad, renamed from .TXT to .BAT
the file contents could be just be like this:
c:program filesyourapp.exe
.BAT file is basically just a text file containing command line scripts, while a .EXE is compiled machine code...
what you CAN do is have a batch file that calls the .EXE, eventually with arguments
what you CAN do is write an application (and compile it into .EXE) that does write .BAT files
what I understand for the linked page is the first one: have a .BAT file to call the .EXE file
possible with START (http://ss64.com/nt/start.html) but you can also call it directly.
the batch file can be created with a notepad, renamed from .TXT to .BAT
the file contents could be just be like this:
c:program filesyourapp.exe