Jump to content

Julien.alkaza

Members
  • Posts

    14
  • Joined

  • Last visited

About Julien.alkaza

  • Birthday 03/06/1986

Profile Information

  • Location
    Avignon, Vaucluse, France
  • WWW
    http://lpmars26.220V.org

Julien.alkaza's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks!! But it still doesn't work!! In fact the application runs but it does not do what I want. The aim is to synchronise files between My documents and a file server. Configuration is made in a profile called save. This command works well in a dos shell, but not in autoit. I've tried your two solutions
  2. Hello, I'm trying to find a solution but I can't!!! What I want to do is to run a program with parameters : "C:\Program Files\2BrightSparks\SyncBack\SyncBack.exe" -m "save" But, it doesn't work!!! It seems to be a quotes problem, but I can't find where!!! I'serach for 2 hours on the forum but didn't find anything!!! Thanks for help!! Oh, my line of code : RunWait('"C:\Program Files\2BrightSparks\SyncBack\SyncBack.exe" -m "save"', "C:\Program Files\2BrightSparks\SyncBack")
  3. Wooooooohhhhhh, what a fast answer!!!!! Okay, this is just what I wanted!!! You're a GOD!!! Thanks!! Julien
  4. Hello, I'm wondering if it is possible to include image files directly into the script... In fact, I have 3 little gif images and I would like to have just an .exe file.... I didn't find anything on the forum... Thanks a lot.....
  5. Sorry for pictures...It was just à extension problem... My problem is that we have different languages. So parsing for "Passerelle par défaut" or for "Default Gateway" or the same in german, spanish, chinese, Turkish, Hungarian, Bulgarian and others and others is quite hard... But, never mind, I'll do with my .254 at the end of the IP address!!! Thanks a lot... Julien
  6. Have a look at this little screenshot..... There are two lines showing a 0.0.0.0 route.... And the last line, "Passerrelle par défaut : ......." is in the OS lang...... Here is my problem... 2nd screenshot... I have two default gateways again. And they depend of the OS Lang... Thanks for your help.... I have found a solution which is not very good, but it works : In our network (International Entreprise) we have lots of sub-network. Every sub-network has a default gateway with an XXX.XXX.XXX.254 IP address...So, I just replace the last Byte by 254.... But, if a network is not set up like that, it won't work......
  7. Okay..... This works, but... If the computer has two network interfaces.... How can I know which is the good one???? I want the wired one!! If the two cards are enabled (and, I think, it's quite frequent because users don't know how to use their computer), I cannot know which is the good!! Moreover, macros @IPAddress1 and @IPAddress2 don't always refer to the same card. E.G : If I only activate my wired card, @IPAddress1 refers to Ethernet connection, and the @IPAddress2 macro returns 0.0.0.0. If my two cards are activated, @IPAdress1 refers to Wireless card, and the second to the wired card!!!! So, when I do : netstat -rn (equal to "route print"), there are two lines with 0.0.0.0 0.0.0.0 XXX.XXX.XXX.XXX with different gateways... How can I be sure to choose the good card??? Thanks a lot... Julien
  8. Thanks for the tip... I'll try it and tell you if it works!!! Julien
  9. Helo all, I'm trying to automaticly get the default gateway of computers. I've found lots of sample script which are based on the "ipconfig /all" command, but, there is a big problem : In my case, the software will be "distributed" in 5 or 6 countries. So, making an ipconfig will work in my native language (French), but, if I run the program in Spain, it'll not work because of searching for "Passerelle par défaut" or "Default Gateway" etc etc... Is there any other solution to get the default gateway of an active connection?? By regedit or something else?? Thanks a lot... Julien
  10. All right!!!! It's working well.... Thanks to everybody!!! Julien
  11. No, no, no & no!!!!! Here is my exact code : #include <Process.au3> RunAsSet ( "Administrator", @Computername, "pass") _RunDos('D:\ADPRINTX.exe /c "\\printserver\HP4050-Can"') RunAsSet() There is no error...Nothing happens!!! When I use only command prompt with : D:\ADPRINTX.exe /c "\\printserver\HP4050-Can" It works!! I don't know where is the problem!!!! Thanks a lot!!
  12. Thanks.... I tried to put singlequote around my command, but it doesn't work!!! There is no error, but no more printer! Run ('D:\ADPRINTX.exe /c "\\printserver\HP4050"') Is there any other solution to do it??
  13. Hello everybody... I'm trying to make a little script to add shared printers automaticly at session opening... So, while searching on this forum, i found adprintx which lets me add network printers. The problem is that when I have to install a printer my command line is : adprintx /c "\\myserver\myprinter" And when I use Run command, the external program must be between " and ". Can I escape " caracter, or is there a solution to not use " in the command???? Thanks a lot... Edit : this is not RunAs command, but Run
×
×
  • Create New...