lolliman Posted December 17, 2012 Report Posted December 17, 2012 I want to reset the date to certain date when we are run the application. And after some time It should set it back to current date. deeniki command lo date MM\DD\YYYY isthe vastundi... kaani naaku batch file laa kaavali. neenu oka software use chestunna, adi license expire ayipoyindi... every time ade start chese mundu time set cheyyalsi vastundi... so daaniki solution kaavali Q ardam kaakapothe thittakandi
deals2buy Posted December 17, 2012 Report Posted December 17, 2012 ardhamaindi le...aa software use cheyyali ante date back ki move chesi...software open chesaka malli current date ki set chesi use cheskovachu..anthena? I've seen this for SAS software...dont know which softtware u r asking abt
lolliman Posted December 17, 2012 Author Report Posted December 17, 2012 [quote name='deals2buy' timestamp='1355787836' post='1302969461'] ardhamaindi le...aa software use cheyyali ante date back ki move chesi...software open chesaka malli current date ki set chesi use cheskovachu..anthena? I've seen this for SAS software...dont know which softtware u r asking abt [/quote] SAP di baa adi LICENSE KONALEM GAAA... idi 3-4 lines code anthe.. ippude ee thought vachindi ila rasthe elavutudani
deals2buy Posted December 17, 2012 Report Posted December 17, 2012 [quote name='lolliman' timestamp='1355787936' post='1302969473'] SAP di baa adi LICENSE KONALEM GAAA... idi 3-4 lines code anthe.. ippude ee thought vachindi ila rasthe elavutudani [/quote] ee SAP SAS anni okate baapatha? emo naaku idea ledu
lolliman Posted December 17, 2012 Author Report Posted December 17, 2012 [quote name='deals2buy' timestamp='1355787987' post='1302969480'] ee SAP SAS anni okate baapatha? emo naaku idea ledu [/quote] ade kadaaa??
lolliman Posted December 17, 2012 Author Report Posted December 17, 2012 [quote name='deals2buy' timestamp='1355787987' post='1302969480'] ee SAP SAS anni okate baapatha? emo naaku idea ledu [/quote] inka evina trail applications ki kooda use chesukovachu gaaa
deals2buy Posted December 17, 2012 Report Posted December 17, 2012 [quote name='lolliman' timestamp='1355788399' post='1302969515'] inka evina trail applications ki kooda use chesukovachu gaaa [/quote] ya chesukovachu anukunta...google lo dorakaleda?
tom bhayya Posted December 18, 2012 Report Posted December 18, 2012 [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]Here is the code(I named my batch file run.bat):[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Store systems current time into BEFOREDATE var as mm-dd-yy[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]SET BEFOREDATE=%date:~4,2%-%date:~7,2%-%date:~10,4%[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set the below date to date you wish to roll your system date back to[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE 01-03-07[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM First param of START command needs empty double quotes[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Second param of Start command should be absolute path to application[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM IE "C:\Program Files(x86)\directory\filename.exe"[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]START "" "filename.exe"[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Cause a delay to allow application to load[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]PING -n 10 127.0.0.1 > NUL 2>&1[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set system date back to current date[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE %BEFOREDATE%[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]To use this script you will want to:[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create the batch file and place it into the applications directory.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create a shortcut to this batch file and place it on your desktop.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Right click the batch files shortcut and select properties.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-On the shortcut tab click the advanced button.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Place a check mark in the run as administrator check box.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the advanced properties window.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the shortcuts properties window. [/background][/size][/font][/color] 1
lolliman Posted December 18, 2012 Author Report Posted December 18, 2012 [quote name='Alexander' timestamp='1355789291' post='1302969598'] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]Here is the code(I named my batch file run.bat):[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Store systems current time into BEFOREDATE var as mm-dd-yy[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]SET BEFOREDATE=%date:~4,2%-%date:~7,2%-%date:~10,4%[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set the below date to date you wish to roll your system date back to[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE 01-03-07[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM First param of START command needs empty double quotes[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Second param of Start command should be absolute path to application[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM IE "C:\Program Files(x86)\directory\filename.exe"[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]START "" "filename.exe"[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Cause a delay to allow application to load[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]PING -n 10 127.0.0.1 > NUL 2>&1[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set system date back to current date[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE %BEFOREDATE%[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]To use this script you will want to:[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create the batch file and place it into the applications directory.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create a shortcut to this batch file and place it on your desktop.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Right click the batch files shortcut and select properties.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-On the shortcut tab click the advanced button.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Place a check mark in the run as administrator check box.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the advanced properties window.[/background][/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the shortcuts properties window. [/background][/size][/font][/color] [/quote] baa nuvvu super, it will work
tom bhayya Posted December 18, 2012 Report Posted December 18, 2012 [quote name='lolliman' timestamp='1355790116' post='1302969682'] baa nuvvu super, it will work [/quote]
lolliman Posted December 18, 2012 Author Report Posted December 18, 2012 [quote name='Alexander' timestamp='1355790207' post='1302969691'] [/quote] idi XP lo work avuddi anukuntaa... windows 7 lo administrator privileges ani aduguthundi... inka deeniki additional gaa inkakoncham code kaavali.... let me see... thanks baaa
ghazni Posted December 18, 2012 Report Posted December 18, 2012 [quote name='lolliman' timestamp='1355791029' post='1302969782'] idi XP lo work avuddi anukuntaa... windows 7 lo administrator privileges ani aduguthundi... inka deeniki additional gaa inkakoncham code kaavali.... let me see... thanks baaa [/quote] if i am not wrong ni system ki nuvu adiminisrator vey kada........ if not poyi groups and users lo nuvu unavo chusuko..........
lolliman Posted December 18, 2012 Author Report Posted December 18, 2012 [quote name='ghazni' timestamp='1355791353' post='1302969819'] if i am not wrong ni system ki nuvu adiminisrator vey kada........ if not poyi groups and users lo nuvu unavo chusuko.......... [/quote] group lo choosthe nenu administrator ga vunna kaani every time run as admin ane option vastundi mari
Recommended Posts