Announcement

Collapse
No announcement yet.

cmd or bat file help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • degger
    replied
    Originally posted by Sakuya View Post
    The same thing happens to me, I've got a program that invokes Subversion binaries by a batch script. The console window never opens because I don't think WINE has a Command shell like cmd.exe.

    Jassings method should work if you replace the local cmd.exe in WINDOWS folder with a local version in AutoPlay\Docs.
    i try copy cmd.exe to autoplay\Docs .... doesn't work
    and then i make copy file bat file to autoplay\Docs...still doesn't work

    Leave a comment:


  • Sakuya
    replied
    The same thing happens to me, I've got a program that invokes Subversion binaries by a batch script. The console window never opens because I don't think WINE has a Command shell like cmd.exe.

    Jassings method should work if you replace the local cmd.exe in WINDOWS folder with a local version in AutoPlay\Docs.

    Leave a comment:


  • mystica
    replied
    Your batch-file will run from within AMS with a standard File.Run call

    ie.
    Code:
    File.Run(_SourceFolder .. "\\test.bat", "", "", SW_SHOWNORMAL, false);
    ... providing the batch-file is correctly coded. If the batch-file is not quite correctly coded, even if it still seems to run via cmd.exe, it will not run via a standard File.Run call.

    Here's a example of a corrctly coded test.bat which runs with a standard File.Run call.

    Leave a comment:


  • jassing
    replied
    post your apz.

    Leave a comment:


  • degger
    replied
    Originally posted by jassing View Post
    File.Run(_SystemFolder.."\\cmd.exe","/c ".._SourceFolder.."\\backup.bat",_SourceFolder );
    stll can't run..
    fyi :
    i can't run my ".BAT file and then i try to only run CMD.exe file but can't running in AMS application and in the same folder i try to run the other EXE file ... can running... ( only make sure my path folder just correct )...

    i can run my BT file or CMD by double clik....

    i'm so confuse.....


    btw.... MERRY CHRISTMAS..... for alll of you..... GOD BLESS US.....

    Leave a comment:


  • jassing
    replied
    File.Run(_SystemFolder.."\\cmd.exe","/c ".._SourceFolder.."\\backup.bat",_SourceFolder );

    Leave a comment:


  • Sakuya
    replied
    Originally posted by degger View Post
    i already try and....
    File.Open(_SourceFolder .. "\\Backup.bat", "_SourceFolder", SW_SHOWNORMAL); -- can't open
    File.Run(_SourceFolder .. "\\Backup.bat", "", _SourceFolder, SW_SHOWNORMAL, false); -- can't run
    Shell.Execute((_SourceFolder .. "\\Backup.bat", "open", "", _SourceFolder, SW_SHOWNORMAL, false); -- still can't execute
    I tried this too, to no avail.

    Copy your cmd.exe file (if you're on 32 bit windows) and try running it through cmd.

    Leave a comment:


  • degger
    replied
    Originally posted by boku View Post
    Hi,

    Have you tried setting a source folder?
    Code:
    File.Open(_SourceFolder .. "\\Backup.bat", "_SourceFolder", SW_SHOWNORMAL);
    
    File.Run(_SourceFolder .. "\\Backup.bat", "", _SourceFolder, SW_SHOWNORMAL, false);
    
    OR
    
    Shell.Execute((_SourceFolder .. "\\Backup.bat", "open", "", _SourceFolder, SW_SHOWNORMAL, false);
    i already try and....
    File.Open(_SourceFolder .. "\\Backup.bat", "_SourceFolder", SW_SHOWNORMAL); -- can't open
    File.Run(_SourceFolder .. "\\Backup.bat", "", _SourceFolder, SW_SHOWNORMAL, false); -- can't run
    Shell.Execute((_SourceFolder .. "\\Backup.bat", "open", "", _SourceFolder, SW_SHOWNORMAL, false); -- still can't execute

    Leave a comment:


  • boku
    replied
    Hi,

    Have you tried setting a source folder?
    Code:
    File.Open(_SourceFolder .. "\\Backup.bat", "_SourceFolder", SW_SHOWNORMAL);
    
    File.Run(_SourceFolder .. "\\Backup.bat", "", _SourceFolder, SW_SHOWNORMAL, false);
    
    OR
    
    Shell.Execute((_SourceFolder .. "\\Backup.bat", "open", "", _SourceFolder, SW_SHOWNORMAL, false);

    Leave a comment:


  • sim
    replied
    You want to test in linux so download virtual box if your on windows install linux to that as you can test all your apps in the linux virtual system before setting up to work on a full blown linux system.

    You can also set a folder to share between the linux and windows systems read the virtual boxs info how to do this.

    I no longer have a working linux system as I took it part to have a play around with iDeneb what didn't work lol.



    Simply Rex

    Leave a comment:


  • degger
    replied
    Originally posted by sim View Post
    Not had chance to test, but if you have windows download Virtal Box it as been really good tool for me in the past.



    Simply Rex

    Sim....i do not understand what are you talk about, please let me know...

    thanks

    Leave a comment:


  • sim
    replied
    Not had chance to test, but if you have windows download Virtal Box it as been really good tool for me in the past.



    Simply Rex

    Leave a comment:


  • degger
    replied
    Originally posted by sim View Post
    Far as I know linux does not have the cmd might be wrong so bat files wont work remeber wine is very limted but I can have a play around later also as I have a linux box.





    Simply Rex
    Ok Sim, thanks... i'm glad for your support...

    Leave a comment:


  • sim
    replied
    Far as I know linux does not have the cmd might be wrong so bat files wont work remeber wine is very limted but I can have a play around later also as I have a linux box.





    Simply Rex

    Leave a comment:


  • degger
    replied
    Originally posted by mystica View Post
    Well, the correct code would be:

    Code:
    File.Run(_SourceFolder .. "\\Backup.bat", "", "", SW_SHOWNORMAL, false);
    or
    Code:
    File.Open(_SourceFolder .. "\\Backup.bat", "", SW_SHOWNORMAL);
    ... but strangely enough. it doesn't work for me either. Very odd.
    Txt-files run fine, but for some strange reason, I'm getting no response for bat-files???
    thanks... but still can't work......

    Leave a comment:

Working...
X