1.

Solve : How to realize the dos raw input?

Answer»

In fact, I have a .EXE file which want to be executed by dos COMMAND, and I need to input the directory which "" should be included , just like Path = "C:\test\simple.dll", but after the .exe file executed, the result is only Path = C:\test\simple.dll, so do you know how to realize the raw input which won't filter my """.
Any ideas? Thanks in advance!Dir D:\Test

That will get a directory of the folder "Test" within the D drive. I am sorry, maybe I did not express clearly...
infact, I have a .exe file which want to be executed by dos command, and I need to input the directory which should be included "", just like Path = "C:\test\simple.dll", but after the .exe file executed, the result is only Path = C:\test\simple.dll, so do you know how to realize the raw input which won't filter my """.

Quote from: Helpmeh on August 13, 2009, 05:14:55 AM

Dir D:\Test

That will get a directory of the folder "Test" within the D drive.
OHHH! Now it makes sense. Put the command in quotes (and the command's path) and put the path to SOMETHING else in different quotes. For example:

"C:\folder name\prog.exe" "D:\other folder\"


Understand?Hi, thanks for help!!
I am not quite understand what you mean...here are more details:

first I input :the "Selected DLL="D:\testsimu0158.dll"" is the input PARAMETER of line_replace.py
D:> python line_replace.py "Selected DLL="D:\testsimu0158.dll""

The output is:
Selected DLL=D:\testsimu0158.dll

but I need : Selected DLL="D:\testsimu0158.dll"

Any ideas ? Thank you very much!

Quote from: Helpmeh on August 13, 2009, 05:28:46 AM
OHHH! Now it makes sense. Put the command in quotes (and the command's path) and put the path to something else in different quotes. For example:

"C:\folder name\prog.exe" "D:\other folder\"


Understand?
Hi, I get it!
If I input :
D:> python line_replace.py "Selected DLL=""D:\testsimu0158.dll"""
then it WORKS:
I will get : Selected DLL="D:\testsimu0158.dll"
Also thank you for you help!!


Quote from: Helpmeh on August 13, 2009, 05:28:46 AM
OHHH! Now it makes sense. Put the command in quotes (and the command's path) and put the path to something else in different quotes. For example:

"C:\folder name\prog.exe" "D:\other folder\"


Understand?


Discussion

No Comment Found